Merge pull request #11579 from parth-gr/external-python2

external: dont do rgw validation if python version < 3
This commit is contained in:
Travis Nielsen authored and GitHub committed 2023-01-23 09:54:56 -07:00
commit e04c293fbf
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 = [