From 138ea7cd94f3f6569509c785c80732f720c23d14 Mon Sep 17 00:00:00 2001 From: "James W. Brinkerhoff" Date: Fri, 11 Feb 2011 13:04:05 -0500 Subject: [PATCH] fixed ready? in server model, minor formatting change in servers --- lib/fog/compute/models/voxel/server.rb | 2 +- lib/fog/compute/models/voxel/servers.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fog/compute/models/voxel/server.rb b/lib/fog/compute/models/voxel/server.rb index 88ff58596..7c1dd7a37 100644 --- a/lib/fog/compute/models/voxel/server.rb +++ b/lib/fog/compute/models/voxel/server.rb @@ -36,7 +36,7 @@ module Fog end def ready? - @status == 'SUCCEEDED' + status == 'SUCCEEDED' end def save diff --git a/lib/fog/compute/models/voxel/servers.rb b/lib/fog/compute/models/voxel/servers.rb index db1b26352..3fa51b0d9 100644 --- a/lib/fog/compute/models/voxel/servers.rb +++ b/lib/fog/compute/models/voxel/servers.rb @@ -33,7 +33,6 @@ module Fog else status = connection.voxcloud_status(device_id) server.first[:status] = status.first[:status] - new(server.first) end end