summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-09-21 16:00:49 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-09-21 16:00:49 +0000
commit89cc1f4407e1d8743f64fd35ccb7259e1d62631e (patch)
treef8431d067a9b6e12600ba2fc65b2732c1d3e5bb3
parent8644f2bb78bc40a78b619f24163fa01fd329886d (diff)
downloadorchestration-89cc1f4407e1d8743f64fd35ccb7259e1d62631e.tar.gz
Stop bottlerock using regex to parse urls
-rw-r--r--source/bottlerock.py3
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']