From 6f3a0f6b86affa53fdd9f0ec8dd62af0858a9426 Mon Sep 17 00:00:00 2001 From: r00t Date: Wed, 12 Apr 2017 12:05:58 -0400 Subject: [PATCH] missed the check if /etc/bdisk/build.ini is specified --- bdisk/host.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bdisk/host.py b/bdisk/host.py index f243bd5..7045555 100755 --- a/bdisk/host.py +++ b/bdisk/host.py @@ -24,7 +24,7 @@ def getHostname(): hostname = platform.node() return(hostname) -def getConfig(conf_file='/etc/bdisk/build.ini'): +def getConfig(conf_file = '/etc/bdisk/build.ini'): conf = False # define some defailt conf paths in case we're installed by # a package manager. in order of the paths we should search. @@ -48,6 +48,8 @@ def getConfig(conf_file='/etc/bdisk/build.ini'): if os.path.isfile(p): conf = p break + else: + conf = conf_file else: conf = conf_file defconf = os.path.abspath('{0}/../extra/dist.build.ini'.format(os.path.dirname(os.path.realpath(__file__))))