summaryrefslogtreecommitdiff
path: root/scripts/do-release.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-06-18 16:06:19 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-06-18 16:06:19 +0000
commit913147ff9f1e8cf6e8b80eb032dace635e24944f (patch)
treea173d18ae911afbf3bd66f9534652bd82c15a32a /scripts/do-release.py
parent6b8caea494efc7d4a83d8a5a0e78614469ef154a (diff)
parentd3b4fbec1a3dd26e32da3080bdb544e528d1b78a (diff)
downloaddefinitions-913147ff9f1e8cf6e8b80eb032dace635e24944f.tar.gz
Merge branch 'baserock/adamcoldrick/deploy-specific-systems'
Diffstat (limited to 'scripts/do-release.py')
-rw-r--r--scripts/do-release.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/do-release.py b/scripts/do-release.py
index e11e6625..ce347632 100644
--- a/scripts/do-release.py
+++ b/scripts/do-release.py
@@ -154,14 +154,14 @@ class DeployImages(object):
for system in release_cluster['systems']:
system_morph = system['morph']
- if 'release' not in system['deploy']:
+ if system_morph not in system['deploy']:
raise cliapp.AppException(
- 'In release.morph: system %s ID should be "release"' %
- system_morph)
+ 'In release.morph: system %s ID should be "%s"' %
+ (system_morph, system_morph))
# We can't override 'location' with a different value. We must use
# what's already in the morphology, and check that it makes sense.
- location = system['deploy']['release']['location']
+ location = system['deploy'][system_morph]['location']
if not os.path.samefile(os.path.dirname(location),
config.images_dir):
raise cliapp.AppException(