Permalink
Browse files

not setting optional value for backward compat

  • Loading branch information...
1 parent 7a7c1e4 commit 7f8d2ba5dfe238fcefb9c516c81b6cf499eb2673 @buzztroll buzztroll committed Nov 18, 2011
@@ -233,7 +233,11 @@ public VM getVM(InstanceResource resource) throws CannotTranslateException {
vm.setState(this.getState(resource));
vm.setCreator(this.getCreator(resource));
vm.setClientToken(resource.getClientToken());
- vm.setDetails(this.getDetails(resource.getVM()));
+ String deets = this.getDetails(resource.getVM());
+ if (deets != null)
+ {
+ vm.setDetails(deets);
+ }
if(resource.getVM().isPreemptable()){
vm.setLifeCycle(VMConstants.LIFE_CYCLE_SPOT);
@@ -248,7 +252,7 @@ private String getDetails(VirtualMachine vm)
throw new CannotTranslateException("null VirtualMachine?");
}
- String details = "";
+ String details = null;
if (this.exposeVMMHostname) {
details = "VMM=" + vm.getNode();
}

0 comments on commit 7f8d2ba

Please sign in to comment.