Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test network name for a blank value as well as null

  • Loading branch information...
commit 087ebd2999637ffd70edcac8503f13c0837dc670 1 parent ae796cd
@buzztroll buzztroll authored
View
2  ...src/org/nimbustools/messaging/gt4_0_elastic/v2008_05_05/general/defaults/DefaultResourceAllocations.java
@@ -139,7 +139,7 @@ void validate() throws Exception {
}
if (this.customCPUs < 1) {
throw new Exception("Invalid: custom RA CPUs is zero " +
- "or negative: " + this.customMemory);
+ "or negative: " + this.customCPUs);
}
if (this.vmmType == null || this.vmmType.trim().length() == 0) {
View
2  ...astic/java/msgbridge/src/org/nimbustools/messaging/gt4_0_elastic/v2008_05_05/rm/defaults/DefaultRun.java
@@ -347,7 +347,7 @@ public RunInstancesResponseType translateCreateResult(CreateResult result,
}
final NIC[] nics;
- if (networkName != null) {
+ if (networkName != null && !networkName.trim().equals("")) {
nics = new NIC[1];
nics[0] = this.oneRequestedNIC(networkName, "autoeth0");
}
Please sign in to comment.
Something went wrong with that request. Please try again.