diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 812babe1234..05627104062 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -1868,7 +1868,7 @@ function get-master-replicas-count() { # Prints regexp for full master machine name. In a cluster with replicated master, # VM names may either be MASTER_NAME or MASTER_NAME with a suffix for a replica. function get-replica-name-regexp() { - echo "${MASTER_NAME}(-...)?" + echo "^${MASTER_NAME}(-...)?" } # Sets REPLICA_NAME to a unique name for a master replica that will match