Skip to content

Instantly share code, notes, and snippets.

@mamedshahmaliyev
Created August 27, 2019 13:25
Show Gist options
  • Save mamedshahmaliyev/61eb57b2f1a6cde78f52ef7ea1639b1c to your computer and use it in GitHub Desktop.
Save mamedshahmaliyev/61eb57b2f1a6cde78f52ef7ea1639b1c to your computer and use it in GitHub Desktop.
ansible tips

fix ansible bug: Bitbucket_access_key list object is not an iterator (python 2.7 compat), ansible/ansible#58456

find / -type f -name "bitbucket_access_key.py" -exec sed -i "s/next(filter(lambda/next(iter(filter(lambda/g" {} +
find / -type f -name "bitbucket_access_key.py" -exec sed -i "s/\]), None/\])), None/g" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment