1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

The password attribute doesn't like the use of @password

This commit is contained in:
Max Lincoln 2014-03-31 19:02:30 -04:00
parent a4e1dbae0d
commit 00cc880921
2 changed files with 4 additions and 4 deletions

View file

@ -555,7 +555,7 @@ module Fog
requires :identity
service.change_server_password(identity, password)
self.state = PASSWORD
@password = password
self.password = password
true
end
@ -573,7 +573,7 @@ module Fog
]
commands.compact
@password = nil if password_lock
self.password = nil if password_lock
Fog::SSH.new(ssh_ip_address, username, credentials).run(commands)
rescue Errno::ECONNREFUSED
@ -588,7 +588,7 @@ module Fog
private
def adminPass=(new_admin_pass)
@password = new_admin_pass
self.password = new_admin_pass
end
def password_lock

View file

@ -3,7 +3,7 @@ Shindo.tests('Fog::Compute::RackspaceV2 | server', ['rackspace']) do
cbs_service = Fog::Rackspace::BlockStorage.new
tests('setup test network').succeeds do
@network = service.networks.create :label => "fog_test_net_#{Time.now.to_i.to_s}", :cidr => '192.168.1.1/24'
@network = service.networks.create :label => "fog_test_net_#{Time.now.to_i.to_s}", :cidr => '192.168.1.0/24'
end
options = {