summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2011-01-12 14:15:23 -0600
committerSol Jerome <sol.jerome@gmail.com>2011-05-14 11:28:12 -0500
commitdb0abb98afe11b6f4059786511fce792cecf3aac (patch)
treec6cc6cb44f637482bc3ed054567db5c6af0a3c00
parent10f45369321978de15bbaf9e7cba29c42df191ce (diff)
downloadbcfg2-db0abb98afe11b6f4059786511fce792cecf3aac.tar.gz
bcfg2-db0abb98afe11b6f4059786511fce792cecf3aac.tar.bz2
bcfg2-db0abb98afe11b6f4059786511fce792cecf3aac.zip
Bcfg2: handle server strings that don't start with https:// (Resolves Ticket #975)
(cherry picked from commit d9cd51cc7449902361611a0cef7cd4b71c57f11f)
-rwxr-xr-xsrc/sbin/bcfg22
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 3407a1c53..011b9fe63 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -104,6 +104,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."""