diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-21 16:00:49 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-21 16:00:49 +0000 |
commit | 89cc1f4407e1d8743f64fd35ccb7259e1d62631e (patch) | |
tree | f8431d067a9b6e12600ba2fc65b2732c1d3e5bb3 | |
parent | 8644f2bb78bc40a78b619f24163fa01fd329886d (diff) | |
download | orchestration-89cc1f4407e1d8743f64fd35ccb7259e1d62631e.tar.gz |
Stop bottlerock using regex to parse urls
-rw-r--r-- | source/bottlerock.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py index 465a001..a6e95ca 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -69,11 +69,10 @@ def missing_property_response(property): @post('/repo_update') def repo_update(): - import re print request.json repo_name = "no repo name" for url in request.json['urls']: - if re.match('^ssh',url): + if url.startswith('ssh'): repo_name = url break changes = request.json['changes'] |