thanks!

ACK & PUSHED

I wonder if we need to introduce a new state to the API Instance states
[1]... 'STOPPED' is probably not the best thing to return when the
instance is actually in an error/unknown state - I'll add this for
discussion,

marios


[1] http://deltacloud.apache.org/instance-states.html

On 12/12/12 03:12, Ian Main wrote:
> UNKNOWN mispeeled and add error state.
> 
> Signed-off-by: Ian Main <[email protected]>
> ---
>  server/lib/deltacloud/drivers/openstack/openstack_driver.rb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb 
> b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
> index bfec12e..ee9957a 100644
> --- a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
> +++ b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
> @@ -540,10 +540,12 @@ private
>                "STOPPED"
>              when /build.*$/
>                "PENDING"
> +            when /error.*/
> +              "STOPPED"
>              when /active/
>                "RUNNING"
>              else
> -              "UNKOWN"
> +              "UNKNOWN"
>            end
>          end
>  
> 

Reply via email to