diff options
author | Ric Holland <richard.holland@codethink.co.uk> | 2013-03-20 17:31:41 +0000 |
---|---|---|
committer | Ric Holland <richard.holland@codethink.co.uk> | 2013-03-20 17:31:41 +0000 |
commit | 1172f59f3905df7361232b63273cbbc27a6156c4 (patch) | |
tree | a25ab39de381a81bd275fd9dc33c369431e5b11c /morphlib/plugins | |
parent | 93f905a469228638a890aa4c2a3b1c895bbd400b (diff) | |
download | morph-1172f59f3905df7361232b63273cbbc27a6156c4.tar.gz |
Improved error message when when system has not been built before deploy
Diffstat (limited to 'morphlib/plugins')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 5bb2d9ec..f8fe0300 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -115,8 +115,12 @@ class DeployPlugin(cliapp.Plugin): if build_command.lac.has(artifact): f = build_command.lac.get(artifact) - else: + elif build_command.rac.has(artifact): f = build_command.rac.get(artifact) + else: + raise cliapp.AppException('Deployment failed as system is not yet' + ' built.\nPlease ensure system is built' + ' before deployment.') tf = tarfile.open(fileobj=f) tf.extractall(path=system_tree) |