Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-25588] - Fix the error with vSphereInstance() setup.
I forgot to remove vcHost usage in previous commits.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
  • Loading branch information
oleg-nenashev committed Jan 6, 2015
1 parent 3667afe commit 4d74a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jenkinsci/plugins/vSphereCloud.java
Expand Up @@ -153,7 +153,7 @@ public final int getHash() {
}

public VSphere vSphereInstance() throws VSphereException{
return VSphere.connect(vsHost + "/sdk", username, getPassword());
return VSphere.connect(getVsHost() + "/sdk", getUsername(), getPassword());
}

@Override
Expand All @@ -170,7 +170,7 @@ public Collection<PlannedNode> provision(Label label, int excessWorkload) {
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("vSphereCloud");
sb.append("{Host='").append(vsHost).append('\'');
sb.append("{Host='").append(getVsHost()).append('\'');
sb.append(", Description='").append(vsDescription).append('\'');
sb.append('}');
return sb.toString();
Expand Down

0 comments on commit 4d74a1d

Please sign in to comment.