From cb7911328a6c4fbefc2ffa21d4d321937dbf2304 Mon Sep 17 00:00:00 2001 From: Mike Blume Date: Mon, 16 Sep 2013 11:56:48 -0700 Subject: [PATCH] use token from command line in dryrun command --- configure-syslog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure-syslog.py b/configure-syslog.py index 840c1c7..62e15f7 100755 --- a/configure-syslog.py +++ b/configure-syslog.py @@ -1378,7 +1378,8 @@ def dryrun(current_environment): syslogd = perform_sanity_check_and_get_product_for_configuration(current_environment) printLog("Dryrun started for syslog version %s" % syslogd) - config_file = write_configuration(syslogd, {'token': 'foofey', 'id': DISTRIBUTION_ID }, 1) + token = getattr(current_environment['options'], 'auth') or 'foofey' + config_file = write_configuration(syslogd, {'token': token, 'id': DISTRIBUTION_ID }, 1) errors = [] if syslogd == 'rsyslog':