def resolve_ambari_config(self): try: config = AmbariConfig() if os.path.exists(AmbariConfig.getConfigFile()): config.read(AmbariConfig.getConfigFile()) else: raise Exception("No config found, use default") except Exception, err: logger.warn(err)
def resolve_ambari_config(self): """ Resolve the default Ambari Agent configs. :return: The default configs. """ try: config = AmbariConfig() if os.path.exists(AmbariConfig.getConfigFile()): config.read(AmbariConfig.getConfigFile()) else: raise Exception("No config found, use default") except Exception, err: log.warn(err)