mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Use six to import urlparse
This commit is contained in:
parent
ed2e6fc8fa
commit
5034a2c702
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@ import os
|
||||||
import re
|
import re
|
||||||
import shlex
|
import shlex
|
||||||
import traceback
|
import traceback
|
||||||
import urlparse
|
|
||||||
|
from six.moves.urllib import parse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from winrm import Response
|
from winrm import Response
|
||||||
|
@ -90,7 +91,7 @@ class Connection(ConnectionBase):
|
||||||
else:
|
else:
|
||||||
realm = None
|
realm = None
|
||||||
|
|
||||||
endpoint = urlparse.urlunsplit((scheme, netloc, '/wsman', '', ''))
|
endpoint = parse.urlunsplit((scheme, netloc, '/wsman', '', ''))
|
||||||
|
|
||||||
self._display.vvvvv('WINRM CONNECT: transport=%s endpoint=%s' % (transport, endpoint), host=self._connection_info.remote_addr)
|
self._display.vvvvv('WINRM CONNECT: transport=%s endpoint=%s' % (transport, endpoint), host=self._connection_info.remote_addr)
|
||||||
protocol = Protocol(
|
protocol = Protocol(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue