Permalink
Browse files

If you put text into the Cobbler Comment field it will now show up in…

… the Vmware VM Summary Annotations
  • Loading branch information...
1 parent 4ae871e commit 922721ebb2637735ac015a1d4175ccd07df8a565 Jonthan Sabo committed Jan 20, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 vmware_cli.py
View
@@ -521,10 +521,11 @@ def main():
print "Unsupported virt type %s (exiting)" % virt_type
sys.exit(1)
- virt_bridge = server.get("virt_bridge")
- virt_cpus = server.get("virt_cpus")
- virt_ram = server.get("virt_ram")
- virt_type = server.get("virt_type")
+ virt_bridge = server.get("virt_bridge",None)
+ virt_cpus = server.get("virt_cpus",None)
+ virt_ram = server.get("virt_ram",None)
+ virt_type = server.get("virt_type",None)
+ comment = server.get("comment",None)
virt_path = server.get("virt_path",None)
virt_file_size = str(server.get("virt_file_size",None))
@@ -554,7 +555,7 @@ def main():
configSpecs.append(nicSpec)
nicKey = nicKey + 1
- vmSpec = createVmSpec(options.name,virt_cpus,virt_ram,options.guestos,options.annotation,virt_path,configSpecs)
+ vmSpec = createVmSpec(options.name,virt_cpus,virt_ram,options.guestos,comment,virt_path,configSpecs)
# Use Command line options for Virtual Hardware options
else:

0 comments on commit 922721e

Please sign in to comment.