summaryrefslogtreecommitdiff
path: root/morphlib/plugins/deploy_plugin.py
diff options
context:
space:
mode:
authorRic Holland <richard.holland@codethink.co.uk>2013-03-20 17:31:41 +0000
committerRic Holland <richard.holland@codethink.co.uk>2013-03-20 17:31:41 +0000
commit1172f59f3905df7361232b63273cbbc27a6156c4 (patch)
treea25ab39de381a81bd275fd9dc33c369431e5b11c /morphlib/plugins/deploy_plugin.py
parent93f905a469228638a890aa4c2a3b1c895bbd400b (diff)
downloadmorph-1172f59f3905df7361232b63273cbbc27a6156c4.tar.gz
Improved error message when when system has not been built before deploy
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r--morphlib/plugins/deploy_plugin.py6
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)