Skip to content

Commit

Permalink
stopping facts modules from erroring out
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Feb 20, 2019
1 parent 76a6b15 commit 5b65a3c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/ansible-pr/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ for filename in mm-bug*; do

while read p; do
git checkout magician/devel -- "lib/ansible/modules/cloud/google/$p.py"
git checkout magician/devel -- "test/integration/targets/$p"
if [[ $p != *"facts"* ]]; then
git checkout magician/devel -- "test/integration/targets/$p"
fi
done < $filename

git checkout magician/devel -- "lib/ansible/module_utils/gcp_utils.py"

git commit -m "Bug fixes for GCP modules" >/dev/null
git commit -m "Bug fixes for GCP modules"

# Create a PR message + save to file
ruby ../../tools/ansible-pr/generate_template.rb > bug_fixes$filename
Expand All @@ -84,7 +86,9 @@ while read module; do
git checkout -b $module

git checkout magician/devel -- "lib/ansible/modules/cloud/google/$module.py"
git checkout magician/devel -- "test/integration/targets/$module"
if [[ $module != *"facts"* ]]; then
git checkout magician/devel -- "test/integration/targets/$module"
fi

git checkout magician/devel -- "lib/ansible/module_utils/gcp_utils.py"

Expand Down

0 comments on commit 5b65a3c

Please sign in to comment.