mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
Assorted python3 fixes for network code. (#18777)
This commit is contained in:
parent
c49eac5645
commit
7900319fc3
2 changed files with 7 additions and 7 deletions
|
@ -23,10 +23,10 @@ import os
|
|||
import re
|
||||
import time
|
||||
import glob
|
||||
import urlparse
|
||||
|
||||
from ansible.plugins.action import ActionBase
|
||||
from ansible.module_utils._text import to_text
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlsplit
|
||||
|
||||
|
||||
PRIVATE_KEYS_RE = re.compile('__.+__')
|
||||
|
@ -87,7 +87,7 @@ class ActionModule(ActionBase):
|
|||
src = self._task.args.get('src')
|
||||
working_path = self._get_working_path()
|
||||
|
||||
if os.path.isabs(src) or urlparse.urlsplit('src').scheme:
|
||||
if os.path.isabs(src) or urlsplit('src').scheme:
|
||||
source = src
|
||||
else:
|
||||
source = self._loader.path_dwim_relative(working_path, 'templates', src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue