diff options
author | Martin Sivak <msivak@redhat.com> | 2008-03-18 22:17:57 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2008-03-18 22:17:57 +0100 |
commit | 08731be503c8755af606fa61526af47aca391eff (patch) | |
tree | d2692b934bc2b19dcf51bd9b205d2b9fb30aedce /firstaidkit | |
parent | 577dbf83603321be92897f7c2aa123b7544e2300 (diff) | |
download | firstaidkit-08731be503c8755af606fa61526af47aca391eff.tar.gz firstaidkit-08731be503c8755af606fa61526af47aca391eff.tar.xz firstaidkit-08731be503c8755af606fa61526af47aca391eff.zip |
The print config part has to be executed right before the Config is locked,
because command line arguments are making modifications to the Config until that time.
Diffstat (limited to 'firstaidkit')
-rwxr-xr-x | firstaidkit | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firstaidkit b/firstaidkit index f554245..ed4703f 100755 --- a/firstaidkit +++ b/firstaidkit @@ -164,12 +164,6 @@ if __name__=="__main__": usage(sys.argv[0]) sys.exit(1) - if Flags.print_config: - print 76*"-" - Config.write(sys.stdout) - print 76*"-" - sys.exit(0) - if Config.operation.mode == "flow": if len(rest) < 1: print "Error in the command arguments.\n" @@ -192,6 +186,12 @@ if __name__=="__main__": usage(sys.argv[0]) sys.exit(1) + if Flags.print_config: + print 76*"-" + Config.write(sys.stdout) + print 76*"-" + sys.exit(0) + Config.lock() # Now that the config is locked, initialize log for plugin system. |