diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-13 18:07:40 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-13 18:07:40 +0000 |
commit | 1f06e41bfe51b8b9263135902ab5d990541b8cb0 (patch) | |
tree | 3f86c60239ae910833618b185f3189808faa093d /morphlib/morphologyfactory.py | |
parent | 91b259141168df31a8f84f013d3789e8dabb0cc2 (diff) | |
parent | 37572bfd4e795576c7f2e540716056a9519d7854 (diff) | |
download | morph-1f06e41bfe51b8b9263135902ab5d990541b8cb0.tar.gz |
Merge branch 'liw/simplify-system-kind'
Diffstat (limited to 'morphlib/morphologyfactory.py')
-rw-r--r-- | morphlib/morphologyfactory.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/morphlib/morphologyfactory.py b/morphlib/morphologyfactory.py index 76905eb9..817d7fcd 100644 --- a/morphlib/morphologyfactory.py +++ b/morphlib/morphologyfactory.py @@ -110,6 +110,17 @@ class MorphologyFactory(object): raise morphlib.Error('No system-kind defined in system %s ' '(it is a mandatory field)' % filename) + if morphology['system-kind'] != 'rootfs-tarball': + self._app.status( + msg='You are using a system-kind %(kind)s. ' + 'This is deprecated and untested functionality that will ' + 'be removed in a future version of Baserock. The only ' + 'supported system-kind is rootfs-tarball. ' + 'Please convert your system morphologies to ' + 'rootfs-tarball and use morph deploy to create ' + 'disk images.', + kind=morphology['system-kind']) + name = morphology['name'] morphology.builds_artifacts = [name + '-rootfs'] |