lib/fog/ecloud/requests/compute/virtual_machine_copy.rb in fog-1.20.0 vs lib/fog/ecloud/requests/compute/virtual_machine_copy.rb in fog-1.21.0
- old
+ new
@@ -19,11 +19,11 @@
network = get_network(uri).body
if options[:ips]
ip = options[:ips][options[:network_uri].index(uri)]
end
{:href => uri, :name => network[:name], :ip => ip}
- end
+ end
options
end
def build_request_body_copy(options)
xml = Builder::XmlMarkup.new
@@ -68,11 +68,11 @@
xml.NetworkSettings do
xml.NetworkAdapterSettings do
options[:network_uri] = options[:network_uri].is_a?(String) ? [options[:network_uri]] : options[:network_uri]
options[:network_uri].each do |uri|
xml.NetworkAdapter do
- xml.Network(:href => uri[:href], :name => uri[:name], :type => "application/vnd.tmrk.cloud.network")
+ xml.Network(:href => uri[:href], :name => uri[:name], :type => "application/vnd.tmrk.cloud.network")
xml.IpAddress uri[:ip]
end
end
end
if options[:dns_settings]
@@ -81,10 +81,10 @@
if options[:dns_settings][:secondary_dns]
xml.SecondaryDns options[:dns_settings][:secondary_dns]
end
end
end
- end
+ end
end
xml.SshKey(:href => options[:ssh_key_uri])
end
xml.Description options[:description]
xml.Tags do