mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Store VM hostname as 'name' annotation
This commit is contained in:
parent
2226f7ca05
commit
c4642d834d
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ def clone_vm template, pool, folder, datastore
|
||||||
# Annotate with creation time, origin template, etc.
|
# Annotate with creation time, origin template, etc.
|
||||||
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
|
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
|
||||||
:annotation => JSON.pretty_generate({
|
:annotation => JSON.pretty_generate({
|
||||||
|
name: vm['hostname'],
|
||||||
base_template: vm['template'],
|
base_template: vm['template'],
|
||||||
creation_timestamp: Time.now
|
creation_timestamp: Time.now
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue