Fix handling of ZUUL_CHANGES

With zuulv3 we may need to have dependencies on projects in
openstack-infra/* namespace, we do not have to clone these for berks,
but we also shouldn't fail on them.

Change-Id: I07799648695149688893f11dea0ffc3c354c2270
This commit is contained in:
Jens Harbott 2017-10-04 07:46:03 +00:00
parent eadaa68937
commit 1f6fb5605b
1 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,10 @@ cookbook_projects=""
for cookbook_info in "${cookbooks[@]}"; do
[[ $cookbook_info =~ openstack/([a-z-]*):.* ]]
cookbook_name="${BASH_REMATCH[1]}"
cookbook_projects+=" openstack/$cookbook_name"
sed -i -e "s|github: [\"\']openstack/$cookbook_name[\"\']|path: '../$cookbook_name'|" Berksfile
if [ -n $cookbook_name ]; then
cookbook_projects+=" openstack/$cookbook_name"
sed -i -e "s|github: [\"\']openstack/$cookbook_name[\"\']|path: '../$cookbook_name'|" Berksfile
fi
done
# Allow the zuul cloner to pull down the necessary Depends-On patches