mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix a couple start-at-task issues
* added pattern matching to match v1 functionality * check the task name, not the task+role name for matches * make sure the input is unicode Fixes #11692
This commit is contained in:
parent
975172c1ef
commit
135404738e
2 changed files with 7 additions and 4 deletions
|
@ -31,6 +31,7 @@ from ansible.playbook.attribute import Attribute, FieldAttribute
|
|||
from ansible.playbook.base import Base
|
||||
from ansible.template import Templar
|
||||
from ansible.utils.boolean import boolean
|
||||
from ansible.utils.unicode import to_unicode
|
||||
|
||||
__all__ = ['PlayContext']
|
||||
|
||||
|
@ -251,7 +252,7 @@ class PlayContext(Base):
|
|||
if hasattr(options, 'step') and options.step:
|
||||
self.step = boolean(options.step)
|
||||
if hasattr(options, 'start_at_task') and options.start_at_task:
|
||||
self.start_at_task = options.start_at_task
|
||||
self.start_at_task = to_unicode(options.start_at_task)
|
||||
|
||||
# get the tag info from options, converting a comma-separated list
|
||||
# of values into a proper list if need be. We check to see if the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue