diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-05-27 08:10:19 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-05-27 08:10:19 +0000 |
commit | 293e642a8b4ec4729400dea47242dab9d88a627e (patch) | |
tree | c6512d9ace0efe0816d5a67ad2f5a8345fe909e1 | |
parent | 5c0887e3e801375376bc46689edc780076d2b731 (diff) | |
download | morph-293e642a8b4ec4729400dea47242dab9d88a627e.tar.gz |
fixup: validation did not check subsystems
-rw-r--r-- | morphlib/morphloader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/morphloader.py b/morphlib/morphloader.py index 3af87468..a1741231 100644 --- a/morphlib/morphloader.py +++ b/morphlib/morphloader.py @@ -424,6 +424,8 @@ class MorphologyLoader(object): deployments = collections.Counter() for system in morph['systems']: deployments.update(system['deploy'].iterkeys()) + for subsystem in system.get('subsystems', []): + deployments.update(subsystem['deploy'].iterkeys()) duplicates = set(deployment for deployment, count in deployments.iteritems() if count > 1) if duplicates: |