Revision 204f2086 lib/cmdlib.py

b/lib/cmdlib.py
4587 4587
    # if we proceed the backup would be removed because OpQueryExports
4588 4588
    # substitutes an empty list with the full cluster node list.
4589 4589
    if nodelist:
4590
      op = opcodes.OpQueryExports(nodes=nodelist)
4591
      exportlist = self.proc.ChainOpCode(op)
4590
      exportlist = rpc.call_export_list(nodelist)
4592 4591
      for node in exportlist:
4593 4592
        if instance.name in exportlist[node]:
4594 4593
          if not rpc.call_export_remove(node, instance.name):
......
4619 4618
      fqdn_warn = True
4620 4619
      instance_name = self.op.instance_name
4621 4620

  
4622
    op = opcodes.OpQueryExports(nodes=[])
4623
    exportlist = self.proc.ChainOpCode(op)
4621
    exportlist = rpc.call_export_list(self.cfg.GetNodeList())
4624 4622
    found = False
4625 4623
    for node in exportlist:
4626 4624
      if instance_name in exportlist[node]:

Also available in: Unified diff