deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH] Fix mappings.
Date Wed, 12 Dec 2012 06:57:56 GMT
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 <imain@redhat.com>
> ---
>  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
>  
> 


Mime
View raw message