We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aba8dd3 commit 749f0d4Copy full SHA for 749f0d4
1 file changed
src/bosh-director/lib/bosh/director/deployment_plan/instance_plan.rb
@@ -193,8 +193,8 @@ def state_changed?
193
194
return true if unresponsive_agent?
195
196
- if (instance.state.stopped? && instance.current_job_state.running?) ||
197
- (instance.state.started? && !instance.current_job_state.running?)
+ if (instance.state == Instance::STATE_STOPPED && instance.current_job_state.running?) ||
+ (instance.state == Instance::STATE_STARTED && !instance.current_job_state.running?)
198
@logger.debug("Instance state is '#{instance.state}' and agent reports '#{instance.current_job_state}'")
199
return true
200
end
0 commit comments