issue91: do not accept resume/suspend when a task is ongoing.

Yes I agree and I check.

2014-11-20 15:13 GMT+01:00 Julien Vey <notifications@github.com>:

> In source/lib/vagrant-openstack-provider/action.rb:
>
> > @@ -153,6 +159,10 @@ def self.action_resume
> >            b.use Call, ReadState do |env, b2|
> >              if env[:machine_state_id] == :not_created
> >                b2.use Message, I18n.t('vagrant_openstack.not_created')
> > +            elsif env[:machine_state_id] == :resumed
> > +              b2.use Message, I18n.t('vagrant_openstack.already_resumed')
> > +            elsif !(env[:machine_state_id] == :active || env[:machine_state_id] == :suspended)
>
> Isn't it strange to resume an instance which is active ?
> Shouldn't we be able to resume only instances that are suspended ?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ggiamarchi/vagrant-openstack-provider/pull/172/files#r20646911>
> .
>