diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-31 16:19:41 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-31 16:19:41 +0000 |
commit | fc7edcc7670846ed683f2c4d36754f4b55f2b6ff (patch) | |
tree | 498a1ee959458e717d120f051ca574d2ac5db827 | |
parent | af3459e3be5069eeba0d8187b701cfe74bf79b12 (diff) | |
download | lorry-controller-fc7edcc7670846ed683f2c4d36754f4b55f2b6ff.tar.gz |
Turn off git's certificate checking
-rwxr-xr-x | lorry-controller-minion | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lorry-controller-minion b/lorry-controller-minion index 0c86a03..c70d493 100755 --- a/lorry-controller-minion +++ b/lorry-controller-minion @@ -145,6 +145,11 @@ class MINION(cliapp.Application): self.temp_lorry_filename, ] + # Turn of git's SSL/TLS certificate checking. FIXME: Remove + # this when we have proper CA root key management in Baserock. + env = dict(os.environ) + env['GIT_SSL_NO_VERIFY'] = 'true' + pipe = os.pipe() self.stdout_fd = pipe[0] self.set_nonblocking(self.stdout_fd) @@ -155,7 +160,8 @@ class MINION(cliapp.Application): argv, stdin=devnull, stdout=pipe[1], - stderr=subprocess.STDOUT) + stderr=subprocess.STDOUT, + env=env) os.close(pipe[1]) devnull.close() |