]> 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>
Sun, 14 Jun 2020 08:34:53 +0000 (16:34 +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 240e04f62c43080e1684b98a2b9596fcc8486e26..f6b60439a7a04ca0710387645ab0e99c3ed13a91 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