diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2011-01-12 14:15:23 -0600 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2011-01-12 14:15:23 -0600 |
commit | d9cd51cc7449902361611a0cef7cd4b71c57f11f (patch) | |
tree | 13d2702853d4bb827baa34827cf18951a920539e /src/sbin | |
parent | fb4fb07c0701278ee4093a412cab340ac16857d1 (diff) | |
download | bcfg2-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-x | src/sbin/bcfg2 | 2 |
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.""" |