summaryrefslogtreecommitdiff
path: root/morphlib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/plugins')
-rw-r--r--morphlib/plugins/deploy_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py
index 22f3bef5..5fd883a3 100644
--- a/morphlib/plugins/deploy_plugin.py
+++ b/morphlib/plugins/deploy_plugin.py
@@ -448,7 +448,7 @@ class DeployPlugin(cliapp.Plugin):
def _validate_partial_deployment(self, deployment_type,
artifact, component_names):
supported_types = ('tarball', 'sysroot')
- if system['type'] not in supported_types:
+ if deployment_type not in supported_types:
raise cliapp.AppException('Not deploying %(name)s, --partial was '
'set and partial deployment only '
'supports %(types)s deployments.',