Revision e375fb61

b/lib/cmdlib.py
3152 3152

  
3153 3153
    for instance in self.my_inst_names:
3154 3154
      inst_config = self.my_inst_info[instance]
3155
      if inst_config.admin_state == constants.ADMINST_OFFLINE:
3156
        i_offline += 1
3155 3157

  
3156 3158
      for nname in inst_config.all_nodes:
3157 3159
        if nname not in node_image:
......
3291 3293
        non_primary_inst = set(nimg.instances).difference(nimg.pinst)
3292 3294

  
3293 3295
        for inst in non_primary_inst:
3294
          # FIXME: investigate best way to handle offline insts
3295
          if inst.admin_state == constants.ADMINST_OFFLINE:
3296
            if verbose:
3297
              feedback_fn("* Skipping offline instance %s" % inst.name)
3298
            i_offline += 1
3299
            continue
3300 3296
          test = inst in self.all_inst_info
3301 3297
          _ErrorIf(test, constants.CV_EINSTANCEWRONGNODE, inst,
3302 3298
                   "instance should not run on node %s", node_i.name)

Also available in: Unified diff