From def9fd9056013be53dedd4c38ead34706aa49521 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Mon, 23 Jan 2023 20:32:32 +0530 Subject: [PATCH] external: dont do rgw validation if python version < 3 Signed-off-by: parth-gr --- deploy/examples/create-external-cluster-resources.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 628186cf3..3285d0ae2 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -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 = [