Revision 14e15659 lib/config.py

b/lib/config.py
48 48

  
49 49
  """
50 50
  def __init__(self, cfg_file=None, offline=False):
51
    self.write_count = 0
51 52
    self._config_data = None
52 53
    self._config_time = None
53 54
    self._config_size = None
......
546 547
      f.close()
547 548
    # we don't need to do os.close(fd) as f.close() did it
548 549
    os.rename(name, destination)
550
    self.write_count += 1
549 551
    # re-set our cache as not to re-read the config file
550 552
    try:
551 553
      st = os.stat(destination)

Also available in: Unified diff