1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vsphere/requests/compute/set_vm_customvalue.rb

18 lines
355 B
Ruby
Raw Normal View History

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