Skip to content

Commit b5716c9

Browse files
committed
Correct cluster check
1 parent 910d05a commit b5716c9

File tree

1 file changed

+2
-2
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils

1 file changed

+2
-2
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public static int getClusterReplicas(String domainUid, String clusterName, Strin
128128
.append(domainUid)
129129
.append(" -n ")
130130
.append(domainNS)
131-
.append(" -o jsonpath='{.spec.clusters[?(@.clusterName='")
131+
.append(" -o jsonpath='{.spec.clusters[?(@.clusterName == \"")
132132
.append(clusterName)
133-
.append("')].replicas }'");
133+
.append("\")].replicas }'");
134134
logger.fine("getClusterReplicas cmd =" + cmd);
135135
ExecResult result = ExecCommand.exec(cmd.toString());
136136
int replicas = 0;

0 commit comments

Comments
 (0)