lib/fog/compute/openstack/requests/evacuate_server.rb in fog-openstack-0.1.31 vs lib/fog/compute/openstack/requests/evacuate_server.rb in fog-openstack-0.2.0

- old
+ new

@@ -3,14 +3,10 @@ class OpenStack class Real def evacuate_server(server_id, host = nil, on_shared_storage = nil, admin_password = nil) evacuate = {} evacuate['host'] = host if host - - if !microversion_newer_than?('2.13') && on_shared_storage - evacuate['onSharedStorage'] = on_shared_storage - end - + evacuate['onSharedStorage'] = on_shared_storage if on_shared_storage evacuate['adminPass'] = admin_password if admin_password body = { 'evacuate' => evacuate } server_action(server_id, body)