Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
  • Loading branch information
elliotgunton committed Jun 12, 2024
1 parent 29b6385 commit 75df498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hera/workflows/_meta_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,14 @@ def _create_subnode(
if _context.pieces[0] != self and isinstance(self, WorkflowTemplate):
# Using None for cluster_scope means it won't appear in the YAML spec (saving some bytes),
# as cluster_scope=False is the default value
assert isinstance(template, Template)
template_ref = TemplateRef(
name=self.name,
template=template.name,
cluster_scope=True if isinstance(self, ClusterWorkflowTemplate) else None,
)
# Set template to None as it cannot be set alongside template_ref
template = None
template = None # type: ignore

_context.declaring = False
if isinstance(_context.pieces[-1], (Steps, Parallel)):
Expand Down

0 comments on commit 75df498

Please sign in to comment.