summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/openshift_ops.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/openshift_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
index 1c16426..c8460d1 100644
--- a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
+++ b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
@@ -782,7 +782,7 @@ def get_gluster_host_ips_by_pvc_name(ocp_node, pvc_name):
brick["name"].split(":")[0]
for brick in pv_info["bricks"]["brick"]
]
- elif sp == "gluster.org/glusterblock":
+ elif sp.startswith("gluster.org/glusterblock"):
get_gluster_pod_node_ip_cmd = (
r"""oc get pv --template '{{range .items}}"""
+ r"""{{if eq .spec.claimRef.name "%s"}}"""