Skip to content

Instantly share code, notes, and snippets.

@4383
Last active April 24, 2019 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/dc9ec8b4f6ce17789d41cead2f15f78b to your computer and use it in GitHub Desktop.
Save 4383/dc9ec8b4f6ce17789d41cead2f15f78b to your computer and use it in GitHub Desktop.
patch code from review
for el in $(ls /var/log/containers); do cp -v /var/log/containers/nova/impl_rabbit.py /var/log/containers/${el}; done
for el in $(infect_who_use_oslo messaging); do \
name=$(echo $el | awk -F "_" '{print $1}'); \
echo -e "patch ${name}\n"; \
docker exec -it --user root ${el} cp /var/log/${name}/impl_rabbit.py /usr/lib/python2.7/site-packages/oslo_messaging/_drivers; \
docker restart ${el}; \
done
curl -4 https://review.opendev.org/changes/643056/revisions/current/patch?download | base64 -d | sudo patch -p1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment