Skip to content

Commit 199c204

Browse files
authored
In the SshOnlyProvisioner get the user name from the provisioner's property instead of a system property
The `SshOnlyProvisioner` gets the user name from the system variable `fallout.system.user.name` and for some reason that is empty. However, it should fetch the username from the `user.name` property of the sshonly provisioner. This fix addresses datastax#9
1 parent 41c8f0f commit 199c204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/datastax/fallout/components/common/provisioner/SshOnlyProvisioner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected CheckResourcesResult reserveImpl(NodeGroup nodeGroup)
126126
protected boolean startImpl(NodeGroup nodeGroup)
127127
{
128128
return nodeGroup.waitForAllNodes(node -> {
129-
String userName = FalloutPropertySpecs.userPropertySpec.value(node);
129+
String userName = userPropertySpec.value(node);
130130
String host = sshHostSpec.value(node);
131131
Integer port = sshPortSpec.value(node);
132132
String password = userPasswordSpec.value(node);

0 commit comments

Comments
 (0)