diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2011-01-12 14:15:23 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-05-14 11:28:12 -0500 |
commit | db0abb98afe11b6f4059786511fce792cecf3aac (patch) | |
tree | c6cc6cb44f637482bc3ed054567db5c6af0a3c00 /src | |
parent | 10f45369321978de15bbaf9e7cba29c42df191ce (diff) | |
download | bcfg2-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)
Diffstat (limited to 'src')
-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 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.""" |