Added None Checks
Fixes #77 Added None checks to avoid an exception if there aren't tasks. Change-Id: I44b4164462fd613b356b520027de5a18e88e1fb9
This commit is contained in:
parent
2b26d5204c
commit
42aa3c486e
|
@ -889,7 +889,9 @@ class DeployNodes(BaseAction):
|
|||
"Unable to configure platform on any nodes, skipping deploy subtask"
|
||||
)
|
||||
|
||||
if len(node_deploy_task.result.successes) > 0:
|
||||
if (node_deploy_task is not None
|
||||
and node_deploy_task.result is not None
|
||||
and len(node_deploy_task.result.successes) > 0):
|
||||
node_bootaction_task = self.orchestrator.create_task(
|
||||
design_ref=self.task.design_ref,
|
||||
action=hd_fields.OrchestratorAction.BootactionReport,
|
||||
|
|
Loading…
Reference in New Issue