File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,9 @@ function pull_sonic_mgmt_docker_image() {
157157 DOCKER_IMAGES_CMD=" docker images --format \" {{.Repository}}:{{.Tag}}\" "
158158 DOCKER_PULL_CMD=" docker pull \" ${DOCKER_REGISTRY} /${DOCKER_SONIC_MGMT} \" "
159159
160- if eval " ${DOCKER_IMAGES_CMD} " | grep -q " ^${DOCKER_SONIC_MGMT} :latest $" ; then
160+ if eval " ${DOCKER_IMAGES_CMD} " | grep -q " ^${DOCKER_SONIC_MGMT} $" ; then
161161 IMAGE_ID=" ${DOCKER_SONIC_MGMT} "
162- elif eval " ${DOCKER_IMAGES_CMD} " | grep -q " ^${DOCKER_REGISTRY} /${DOCKER_SONIC_MGMT} :latest $" ; then
162+ elif eval " ${DOCKER_IMAGES_CMD} " | grep -q " ^${DOCKER_REGISTRY} /${DOCKER_SONIC_MGMT} $" ; then
163163 IMAGE_ID=" ${DOCKER_REGISTRY} /${DOCKER_SONIC_MGMT} "
164164 elif log_info " pulling docker image from a registry ..." && eval " ${DOCKER_PULL_CMD} " ; then
165165 IMAGE_ID=" ${DOCKER_REGISTRY} /${DOCKER_SONIC_MGMT} "
You can’t perform that action at this time.
0 commit comments