diff options
author | Joe Burmeister <joe.burmeister@codethink.co.uk> | 2012-11-14 12:14:59 +0000 |
---|---|---|
committer | Joe Burmeister <joe.burmeister@codethink.co.uk> | 2012-11-14 12:14:59 +0000 |
commit | 0fc1f9bf9e00f73892835b4b9ceab44b0fc2a5f3 (patch) | |
tree | 9e91e4509d4096125bad333ef38ca7d6cb4e4051 /lorrycontroller | |
parent | 18884274cc479218f6ddaea5a99adaf07194f984 (diff) | |
download | lorry-controller-0fc1f9bf9e00f73892835b4b9ceab44b0fc2a5f3.tar.gz |
Fix so lorry files don't require source-HEAD if they use the default.
Diffstat (limited to 'lorrycontroller')
-rw-r--r-- | lorrycontroller/confparser.py | 2 |
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: |