aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Kastner <jkastner@redhat.com>2015-04-16 16:48:29 +0200
committerClark Williams <williams@redhat.com>2015-06-10 14:33:05 -0500
commite3239d19c18d98708f0ba5b5bc5df729e203a931 (patch)
tree2cf7adf79300b4621ad7d566171cc68249f0b5cf
parentf2599820709edc986d5dcd9d383a6e3caec686d1 (diff)
downloadrteval-e3239d19c18d98708f0ba5b5bc5df729e203a931.tar.gz
rteval-cmd: load default configs when no config file is specified
Bugzilla: 1212452 When no configuration was specified on the command line, rteval was not loading the default configuration file. Signed-off-by: Jiri Kastner <jkastner@redhat.com> Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
-rwxr-xr-xrteval-cmd3
1 files changed, 2 insertions, 1 deletions
diff --git a/rteval-cmd b/rteval-cmd
index 3ded96c..37be072 100755
--- a/rteval-cmd
+++ b/rteval-cmd
@@ -205,7 +205,8 @@ if __name__ == '__main__':
# Missing file argument
raise RuntimeError('The -f option requires a file name to the configuration file')
except ValueError:
- # No configuration file given
+ # No configuration file given, load defaults
+ config.Load()
pass
if not config.HasSection('loads'):