From 6bb9c827806d60e8d649220042f7c81c056ef90f Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 16 Sep 2015 15:59:44 +0100 Subject: Case where no testing_sha --- deploy_logic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'deploy_logic.py') diff --git a/deploy_logic.py b/deploy_logic.py index 669c881..c5b3150 100644 --- a/deploy_logic.py +++ b/deploy_logic.py @@ -51,7 +51,10 @@ if __name__ == '__main__': system = sys.argv[1] artefact = sys.argv[2] global testing_sha - testing_sha = sys.argv[3] + try: + testing_sha = sys.argv[3] + except: + testing_sha = 'HEAD' deploy_exit_val = deploy('clusters/tlsa.morph') if deploy_exit_val: _exit(deploy_exit_val) _exit(trigger_testing(artefact)) -- cgit v1.2.1