diff options
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-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) |