summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2011-01-12 14:15:23 -0600
committerNarayan Desai <desai@mcs.anl.gov>2011-01-12 14:15:23 -0600
commitd9cd51cc7449902361611a0cef7cd4b71c57f11f (patch)
tree13d2702853d4bb827baa34827cf18951a920539e /src/sbin
parentfb4fb07c0701278ee4093a412cab340ac16857d1 (diff)
downloadbcfg2-d9cd51cc7449902361611a0cef7cd4b71c57f11f.tar.gz
bcfg2-d9cd51cc7449902361611a0cef7cd4b71c57f11f.tar.bz2
bcfg2-d9cd51cc7449902361611a0cef7cd4b71c57f11f.zip
Bcfg2: handle server strings that don't start with https:// (Resolves Ticket #975)
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg22
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 10262e4a9..9bc50fe65 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -111,6 +111,8 @@ class Client:
if (self.setup["file"] != False) and (self.setup["cache"] != False):
print("cannot use -f and -c together")
raise SystemExit(1)
+ if not self.setup['server'].startswith('https://'):
+ self.setup['server'] = 'https://' + self.setup['server']
def run_probe(self, probe):
"""Execute probe."""