]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw: should import parse not urlparse
authorKefu Chai <kchai@redhat.com>
Wed, 25 Mar 2020 13:47:54 +0000 (21:47 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Jun 2020 02:32:22 +0000 (10:32 +0800)
urlparse is a function while parse is a submodule where parse_qsl() is
provided

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0db88f775b204b44d5c7b3c50e5ad3fffad029f1)

src/test/rgw/rgw_multi/zone_ps.py

index 4573cd5a62553b866ccff43167bba501455998b9..ed4522e569b5bfb180346ba60c7933a45210c0dc 100644 (file)
@@ -6,7 +6,7 @@ import hashlib
 import base64
 import xmltodict
 from six.moves import http_client
-from six.moves.urllib.parse import urlparse
+from six.moves.urllib import parse as urlparse
 from time import gmtime, strftime
 from tasks.rgw_multi.multisite import Zone
 import boto3