'created_by' annotation

This commit is contained in:
Scott Schneider 2014-02-12 11:13:43 -08:00
parent df9c8b5647
commit efda9dfe42

View file

@ -167,6 +167,7 @@ def clone_vm template, pool, folder, datastore
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
:annotation => JSON.pretty_generate({
name: vm['hostname'],
created_by: $config[:vsphere]['username'],
base_template: vm['template'],
creation_timestamp: Time.now.utc
})