Revision 1fe93c75

b/lib/ssconf.py
52 52

  
53 53
    """
54 54
    self._file_name = file_name
55
    self.Reload()
56

  
57
  def Reload(self):
58
    """Reloads the config file.
59

  
60
    """
55 61
    try:
56
      self._config_data = serializer.Load(utils.ReadFile(file_name))
62
      self._config_data = serializer.Load(utils.ReadFile(self._file_name))
57 63
    except IOError, err:
58 64
      raise errors.ConfigurationError("Cannot read config file %s: %s" %
59
                                      (file_name, err))
65
                                      (self._file_name, err))
60 66
    except ValueError, err:
61 67
      raise errors.ConfigurationError("Cannot load config file %s: %s" %
62
                                      (file_name, err))
68
                                      (self._file_name, err))
63 69

  
64 70
  def GetClusterName(self):
65 71
    return self._config_data["cluster"]["cluster_name"]

Also available in: Unified diff