summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Burmeister <joe.burmeister@codethink.co.uk>2012-11-14 12:14:59 +0000
committerJoe Burmeister <joe.burmeister@codethink.co.uk>2012-11-14 12:14:59 +0000
commit0fc1f9bf9e00f73892835b4b9ceab44b0fc2a5f3 (patch)
tree9e91e4509d4096125bad333ef38ca7d6cb4e4051
parent18884274cc479218f6ddaea5a99adaf07194f984 (diff)
downloadlorry-controller-0fc1f9bf9e00f73892835b4b9ceab44b0fc2a5f3.tar.gz
Fix so lorry files don't require source-HEAD if they use the default.
-rw-r--r--lorrycontroller/confparser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lorrycontroller/confparser.py b/lorrycontroller/confparser.py
index c6acf29..0c7fdb7 100644
--- a/lorrycontroller/confparser.py
+++ b/lorrycontroller/confparser.py
@@ -140,6 +140,8 @@ class LorryControllerConfig(object):
if self.lorries.get(fullname, None) is not None:
self._give_up("Lorry repeated: %s" % fullname)
content['controller-uuid'] = entry['uuid']
+ if not content.has_key('source-HEAD'):
+ content['source-HEAD'] = 'refs/heads/master'
my_lorry_names.add(fullname)
self.lorries[fullname] = content
except Exception, e: