Sha256: a074b83c20d4af1904e4dc7ca5a44e70d4fbce5345d3946c15a5221058e148fb

Contents?: true

Size: 666 Bytes

Versions: 85

Compression:

Stored size: 666 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def live_migrate_server(server_id, host, block_migration, disk_over_commit)
          body = {
            'os-migrateLive' => {
              'host' => host,
              'block_migration' => block_migration,
              'disk_over_commit' => disk_over_commit,
            }
          }
          server_action(server_id, body)

        end

      end

      class Mock

        def live_migrate_server(server_id, host, block_migration, disk_over_commit)
          response = Excon::Response.new
          response.status = 202
          response
        end

      end
    end
  end
end

Version data entries

85 entries across 85 versions & 13 rubygems

Version Path
fog-1.7.0 lib/fog/openstack/requests/compute/live_migrate_server.rb
fog-1.6.0 lib/fog/openstack/requests/compute/live_migrate_server.rb
fog-1.5.0 lib/fog/openstack/requests/compute/live_migrate_server.rb
rackspace-fog-1.4.2 lib/rackspace-fog/openstack/requests/compute/live_migrate_server.rb
fog-1.4.0 lib/fog/openstack/requests/compute/live_migrate_server.rb