mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Fixed import of urlencode and pathname2url from urllib for python3 (#24424)
This commit is contained in:
parent
98a8b967d2
commit
b65ebf3519
26 changed files with 66 additions and 69 deletions
|
@ -530,7 +530,8 @@ import platform
|
|||
import socket
|
||||
import sys
|
||||
import types
|
||||
import urllib
|
||||
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlencode
|
||||
|
||||
HAS_LIB_JSON = True
|
||||
try:
|
||||
|
@ -575,8 +576,8 @@ class LogicMonitor(object):
|
|||
and return the response"""
|
||||
self.module.debug("Running LogicMonitor.rpc")
|
||||
|
||||
param_str = urllib.urlencode(params)
|
||||
creds = urllib.urlencode(
|
||||
param_str = urlencode(params)
|
||||
creds = urlencode(
|
||||
{"c": self.company,
|
||||
"u": self.user,
|
||||
"p": self.password})
|
||||
|
@ -614,8 +615,8 @@ class LogicMonitor(object):
|
|||
server \"do\" function"""
|
||||
self.module.debug("Running LogicMonitor.do...")
|
||||
|
||||
param_str = urllib.urlencode(params)
|
||||
creds = (urllib.urlencode(
|
||||
param_str = urlencode(params)
|
||||
creds = (urlencode(
|
||||
{"c": self.company,
|
||||
"u": self.user,
|
||||
"p": self.password}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue