X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-check-image-protection.sh;h=df660c96a9996cfb612d27d30c5e3e0dd8e8cb82;hb=63ecbdec7e9b945d75d5a4476571dba63a832590;hp=0ca64fbc6ff3ca0e27e9155acb65980ae8746fcb;hpb=f9915f02c9a51d10d0745eded70b55ebb96e8e46;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-check-image-protection.sh b/jjb/opendaylight-infra-check-image-protection.sh index 0ca64fbc6..df660c96a 100644 --- a/jjb/opendaylight-infra-check-image-protection.sh +++ b/jjb/opendaylight-infra-check-image-protection.sh @@ -30,10 +30,10 @@ readarray -t images <<< "$(grep -r _system_image: --include \*.yaml \ | awk -F": " -e '{print $3}' | sed "s:'::;s:'$::;/^$/d" | sort | uniq)" for image in "${images[@]}"; do - os_image_protected=$(openstack --os-cloud $OS_CLOUD image show "$image" -f value -c protected) + os_image_protected=$(openstack --os-cloud "$OS_CLOUD" image show "$image" -f value -c protected) echo "Protected setting for $image: $os_image_protected" if [[ $os_image_protected != True ]]; then echo "Image: $image NOT set as protected, changing the protected value." - openstack --os-cloud $OS_CLOUD image set --protected "$image" + openstack --os-cloud "$OS_CLOUD" image set --protected "$image" fi done