lib/fog/compute/models/slicehost/server.rb in fog-0.9.0 vs lib/fog/compute/models/slicehost/server.rb in fog-0.10.0
- old
+ new
@@ -93,10 +93,10 @@
requires :addresses, :identity, :public_key, :username
Fog::SSH.new(addresses.first, username, credentials).run([
%{mkdir .ssh},
%{echo "#{public_key}" >> ~/.ssh/authorized_keys},
%{passwd -l #{username}},
- %{echo "#{attributes.to_json}" >> ~/attributes.json}
+ %{echo "#{MultiJson.encode(attributes)}" >> ~/attributes.json}
])
rescue Errno::ECONNREFUSED
sleep(1)
retry
end