Skip to content

Commit

Permalink
automation fix for cr file read issue (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrushch authored Dec 3, 2021
1 parent e038312 commit 12dc58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional-tests/scale_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def read_driver_data(clusterconfig, namespace, operator_namespace, kubeconfig):
assert False

for cluster in loadcr_yaml["spec"]["clusters"]:
if "primary" in cluster.keys():
if "primary" in cluster.keys() and cluster["primary"]["primaryFs"] is not '':
data["primaryFs"] = cluster["primary"]["primaryFs"]
data["guiHost"] = cluster["restApi"][0]["guiHost"]
if check_key(cluster["primary"], "primaryFset"):
Expand Down Expand Up @@ -796,7 +796,7 @@ def read_operator_data(clusterconfig, namespace, kubeconfig=None):
data["remote_secret_names"] = []
data["remote_cacert_names"] = []
for cluster in loadcr_yaml["spec"]["clusters"]:
if "primary" in cluster.keys():
if "primary" in cluster.keys() and cluster["primary"]["primaryFs"] is not '':
data["primaryFs"] = cluster["primary"]["primaryFs"]
data["guiHost"] = cluster["restApi"][0]["guiHost"]
data["local_secret_name"] = cluster["secrets"]
Expand Down

0 comments on commit 12dc58f

Please sign in to comment.