We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6ee9e9 commit 9bb3638Copy full SHA for 9bb3638
1 file changed
api/models.py
@@ -537,9 +537,10 @@ def _prepare_launch_args(self):
537
chef['validation_name'] = settings.CHEF_VALIDATION_NAME
538
chef['validation_key'] = settings.CHEF_VALIDATION_KEY
539
chef['node_name'] = self.id
540
- # use the layer's run list
541
- chef['run_list'] = self.layer.run_list
542
- chef['initial_attributes'] = self.layer.initial_attributes
+ if self.layer.run_list:
+ chef['run_list'] = self.layer.run_list
+ if self.layer.initial_attributes:
543
+ chef['initial_attributes'] = self.layer.initial_attributes
544
# add the formation's ssh pubkey
545
init.setdefault('ssh_authorized_keys', []).append(
546
self.formation.ssh_public_key)
0 commit comments