From e9b3dbbe18d9a465148cc8df494971054b87654a Mon Sep 17 00:00:00 2001 From: Daniel Firth Date: Tue, 15 Oct 2013 11:47:47 +0000 Subject: Deploying a non-cluster morphology now displays an error message --- morphlib/plugins/deploy_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'morphlib/plugins/deploy_plugin.py') diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 35bb2b6e..825b0124 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -274,6 +274,10 @@ class DeployPlugin(cliapp.Plugin): root_repo_dir = self.other.find_repository(branch_dir, root_repo) data = self.other.load_morphology(root_repo_dir, cluster) + if data['kind'] != 'cluster': + raise cliapp.AppException( + "Error: morph deploy is only supported for cluster" + " morphologies.") for system in data['systems']: self.deploy_system(system, env_vars) -- cgit v1.2.1