Revision 7260cfbe tools/cfgshell

b/tools/cfgshell
152 152
      arg = None
153 153
    try:
154 154
      self.cfg = config.ConfigWriter(cfg_file=arg, offline=True)
155
      self.parents = [self.cfg._config_data]
155
      self.parents = [self.cfg._config_data] # pylint: disable-msg=W0212
156 156
      self.path = []
157 157
    except errors.ConfigurationError, err:
158 158
      print "Error: %s" % str(err)
......
284 284
    if self.cfg.VerifyConfig():
285 285
      print "Config data does not validate, refusing to save."
286 286
      return False
287
    self.cfg._WriteConfig()
287
    self.cfg._WriteConfig() # pylint: disable-msg=W0212
288 288

  
289 289
  def do_rm(self, line):
290 290
    """Removes an instance or a node.
......
294 294

  
295 295
    """
296 296
    pointer = self.parents[-1]
297
    data = self.cfg._config_data
297
    data = self.cfg._config_data  # pylint: disable-msg=W0212
298 298
    if pointer not in (data.instances, data.nodes):
299 299
      print "Can only delete instances and nodes"
300 300
      return False

Also available in: Unified diff