Store VM hostname as 'name' annotation

This commit is contained in:
Scott Schneider 2014-02-12 10:47:35 -08:00
parent 2226f7ca05
commit c4642d834d

View file

@ -166,6 +166,7 @@ def clone_vm template, pool, folder, datastore
# Annotate with creation time, origin template, etc.
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
:annotation => JSON.pretty_generate({
name: vm['hostname'],
base_template: vm['template'],
creation_timestamp: Time.now
})