Skip to content

Commit

Permalink
Remove unneeded Task.is_static assignment (ansible#82288)
Browse files Browse the repository at this point in the history
Added in b38f746 but there is/was no Task.is_static so this just creates
a new attribute dynamically that is/was never used.
  • Loading branch information
mkrizek authored Nov 28, 2023
1 parent 322eb0f commit fd2d0ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ansible/playbook/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
from ansible.playbook.role_include import IncludeRole
from ansible.playbook.handler_task_include import HandlerTaskInclude
from ansible.template import Templar
from ansible.utils.plugin_docs import get_versioned_doclink

if not isinstance(ds, list):
raise AnsibleAssertionError('The ds (%s) should be a list but was a %s' % (ds, type(ds)))
Expand Down Expand Up @@ -257,7 +256,6 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
else:
task_list.extend(included_blocks)
else:
t.is_static = False
task_list.append(t)

elif action in C._ACTION_ALL_PROPER_INCLUDE_IMPORT_ROLES:
Expand Down

0 comments on commit fd2d0ec

Please sign in to comment.