lib/fog/compute/models/slicehost/server.rb in fog-0.8.1 vs lib/fog/compute/models/slicehost/server.rb in fog-0.8.2

- old
+ new

@@ -14,11 +14,11 @@ attribute :bandwidth_out, :aliases => 'bw-out' attribute :flavor_id, :aliases => 'flavor-id' attribute :image_id, :aliases => 'image-id' attribute :name attribute :progress - attribute :status + attribute :state, :aliases => 'status' attr_accessor :password alias_method :'root-password=', :password= attr_writer :private_key, :private_key_path, :public_key, :public_key_path, :username @@ -69,10 +69,10 @@ def public_key @public_key ||= public_key_path && File.read(public_key_path) end def ready? - status == 'active' + self.state == 'active' end def reboot(type = 'SOFT') requires :id connection.reboot_slice(id, type)