mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
357 B
Ruby
19 lines
357 B
Ruby
module Fog
|
|
module Compute
|
|
class Vsphere
|
|
class Real
|
|
def set_vm_customvalue(vm_id, key, value)
|
|
vm_ref = get_vm_ref(vm_id)
|
|
vm_ref.setCustomValue(:key => key, :value => value)
|
|
end
|
|
|
|
end
|
|
class Mock
|
|
def set_vm_customvalue(vm_id, key, value)
|
|
nil
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|