lib/fog/cloudstack/requests/compute/clean_vmreservations.rb in fog-1.23.0 vs lib/fog/cloudstack/requests/compute/clean_vmreservations.rb in fog-1.24.0
- old
+ new
@@ -3,14 +3,18 @@
class Cloudstack
class Real
# Cleanups VM reservations in the database.
#
- # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/cleanVMReservations.html]
- def clean_vmreservations(options={})
- options.merge!(
- 'command' => 'cleanVMReservations'
- )
+ # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/cleanVMReservations.html]
+ def clean_vmreservations(*args)
+ options = {}
+ if args[0].is_a? Hash
+ options = args[0]
+ options.merge!('command' => 'cleanVMReservations')
+ else
+ options.merge!('command' => 'cleanVMReservations')
+ end
request(options)
end
end
end