Merge "Add explicit rackd image sync"

This commit is contained in:
Zuul 2019-05-29 17:20:55 +00:00 committed by Gerrit Code Review
commit 3b453bd8d6
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ function check_for_rack_sync {
if [[ $synced_ctlr == "true" && ! -z ${selected_imgs} ]]
then
sync_list=$(echo -e "${sync_list}\n${rack_id}" | sort | uniq)
else
maas ${ADMIN_USERNAME} rack-controller import-boot-images ${rack_id}
fi
if [[ $(echo -e "${rack_list}" | sort | uniq | grep -v '^$' ) == $(echo -e "${sync_list}" | sort | uniq | grep -v '^$') ]]
then