On 09/20/10 - 01:39:23PM, Mohammed Morsi wrote:
> ---
>  src/dbomatic/dbomatic |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/src/dbomatic/dbomatic b/src/dbomatic/dbomatic
> index 7434d36..9b155a8 100755
> --- a/src/dbomatic/dbomatic
> +++ b/src/dbomatic/dbomatic
> @@ -97,6 +97,12 @@ class CondorEventLog < Nokogiri::XML::SAX::Document
>          InstanceEvent.create! :instance => inst,
>                                :event_type => @event_type,
>                                :event_time => @event_time
> +        if @event_type == 'ExecuteEvent'
> +          inst.state = Instance::STATE_RUNNING
> +        elsif @event_type == 'JobTerminated'
> +          inst.state = Instance::STATE_STOPPED
> +        end
> +        inst.save
>        end
>        @tag = @event_type = @event_cmd = @event_time = nil
>      end

Just to be clear, this patch was superceded by another which is already
committed.  So NACK.

-- 
Chris Lalancette
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to