external: dont do rgw validation if python version < 3
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit def9fd9056)
This commit is contained in:
1 parent
f808d355c0
commit
ed30d06203
1 file changed
+9
@@ -1135,6 +1135,15 @@ class RadosJSON:
|
||||
)
|
||||
raise Exception(err_msg)
|
||||
|
||||
# if it is python2, don't check for ceph version for adding `info=read` cap(rgw_validation)
|
||||
if sys.version_info.major < 3:
|
||||
jsonoutput = json.loads(output)
|
||||
return (
|
||||
jsonoutput["keys"][0]["access_key"],
|
||||
jsonoutput["keys"][0]["secret_key"],
|
||||
False,
|
||||
)
|
||||
|
||||
# separately add info=read caps for rgw-endpoint ip validation
|
||||
info_cap_supported = True
|
||||
cmd = [
|
||||
|
||||
Reference in new issue
Block a user