mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Migrate basestring to a python3 compatible type (#17199)
This commit is contained in:
parent
a695e18615
commit
a22909c226
28 changed files with 137 additions and 101 deletions
|
@ -21,6 +21,7 @@ __metaclass__ = type
|
|||
|
||||
import json
|
||||
|
||||
from ansible.compat.six import string_types
|
||||
from ansible.plugins.action import ActionBase
|
||||
from ansible.plugins.action.net_template import ActionModule as NetActionModule
|
||||
|
||||
|
@ -32,7 +33,7 @@ class ActionModule(NetActionModule, ActionBase):
|
|||
|
||||
result = dict(changed=False)
|
||||
|
||||
if isinstance(self._task.args['src'], basestring):
|
||||
if isinstance(self._task.args['src'], string_types):
|
||||
self._handle_template()
|
||||
|
||||
result.update(self._execute_module(module_name=self._task.action,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue