lib/fog/compute/openstack/requests/evacuate_server.rb in fog-openstack-0.1.28 vs lib/fog/compute/openstack/requests/evacuate_server.rb in fog-openstack-0.1.29
- old
+ new
@@ -3,10 +3,14 @@
class OpenStack
class Real
def evacuate_server(server_id, host = nil, on_shared_storage = nil, admin_password = nil)
evacuate = {}
evacuate['host'] = host if host
- evacuate['onSharedStorage'] = on_shared_storage if on_shared_storage
+
+ if !microversion_newwer_than('2.13') && on_shared_storage
+ evacuate['onSharedStorage'] = on_shared_storage
+ end
+
evacuate['adminPass'] = admin_password if admin_password
body = {
'evacuate' => evacuate
}
server_action(server_id, body)