Revision d0d7d7cf lib/cmdlib/tags.py

b/lib/cmdlib/tags.py
133 133
    """Returns the tag list.
134 134

  
135 135
    """
136
    cfg = self.cfg
137
    tgts = [("/cluster", cfg.GetClusterInfo())]
138
    ilist = cfg.GetAllInstancesInfo().values()
136
    tgts = [("/cluster", self.cfg.GetClusterInfo())]
137
    ilist = self.cfg.GetAllInstancesInfo().values()
139 138
    tgts.extend([("/instances/%s" % i.name, i) for i in ilist])
140
    nlist = cfg.GetAllNodesInfo().values()
139
    nlist = self.cfg.GetAllNodesInfo().values()
141 140
    tgts.extend([("/nodes/%s" % n.name, n) for n in nlist])
142 141
    tgts.extend(("/nodegroup/%s" % n.name, n)
143
                for n in cfg.GetAllNodeGroupsInfo().values())
142
                for n in self.cfg.GetAllNodeGroupsInfo().values())
144 143
    results = []
145 144
    for path, target in tgts:
146 145
      for tag in target.GetTags():

Also available in: Unified diff