示例#1
0
    def read_config(self, *args, **kwargs):
        try:
            self.CONFIG = self.core.config_manager.get(self.NAME)
        except ConfigError:
            self._discover_hostname()
            self.empty_conf = True

        if EDENWALL:
            ha_type = self._readHaType()
            self.name_fmt = getHostnameFormatHA(ha_type)
示例#2
0
 def __init__(self):
     ConfigServiceComponent.__init__(self)
     self.empty_conf = False
     self.name_fmt = getHostnameFormatHA(ENOHA) # default fmt