diff --git a/configure-syslog.py b/configure-syslog.py index d5b0fc4..f8ae9f2 100755 --- a/configure-syslog.py +++ b/configure-syslog.py @@ -944,9 +944,8 @@ def create_bash_script(content): config_file = open(file_path, "w") config_file.write(content) config_file.close() - Logger.printLog(("Current user is not root user. Run script %s as root," - "restart syslog service and then " - "run configure-syslog.py again with 'verify'" + Logger.printLog(("Current user is not root user. Run script %s as root then " + "restart the syslog service" % file_path), prio = 'crit', print_comp = True) def create_loggly_config_file(syslog_id, syslog_configuration_details, @@ -1317,7 +1316,7 @@ def install(current_environment): (authorization_details['token'], modified_config_file), print_comp = True, prio = 'debug') Logger.printLog("Installation completed", prio = 'debug') - print("You may verify installation by re-running with action 'verify'") + return syslog_name_for_configuration def verify(current_environment): @@ -1507,4 +1506,4 @@ def main(): Logger.printLog(traceback.format_exc()) finally: Logger.printLog('Configure script has errors') - sys.exit(-1) \ No newline at end of file + sys.exit(-1)