Revision ff0c9604

b/lib/cmdlib.py
7177 7177
    node_current = instance.primary_node
7178 7178
    timeout = self.op.timeout
7179 7179

  
7180
    if not self.op.no_remember:
7180
    # If the instance is offline we shouldn't mark it as down, as that
7181
    # resets the offline flag.
7182
    if not self.op.no_remember and instance.admin_state in INSTANCE_ONLINE:
7181 7183
      self.cfg.MarkInstanceDown(instance.name)
7182 7184

  
7183 7185
    if self.primary_offline:

Also available in: Unified diff