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