#4190 modify gather-diff-instances.py to ignore some keys
Closed: Fixed Opened by kevin.

We have a script in the infrastructure git repo we use on our private cloud.

It runs every 10minutes and reports on new cloud instances or old ones that were terminated.

However, there are some instances we don't care about. Currently that would include instances with a key_name of 'buildsys'. (These are copr builders). There may be others added over time we don't care about either (automated qa, etc).

Modify the script at: https://git.fedorahosted.org/cgit/fedora-infrastructure.git/tree/scripts/gather-diff-instances/gather-diff-instances.py?id=0ceb4089c199edcdaa5fd7067c0a5ae4b66e7ca0 to ignore instances with a key_name included in a blacklist.


please check the attached file, thanks.

A good first cut... ;)

issue:

if I blacklist 'buildsys' and thats all that would be in the report, I get an email with:

"Instance(s) Removed:" or "Instance(s) Added:" and no content...

nice blunder, mariocav

solved (I hope)

Can you do a fresh git diff against the repo? I can't seem to get these two to apply cleanly... ;(

done (last attachment).

Seems to work fine.

fixed in:
commit 54d034a43cd200480c94045d2904e66cf362009a

Thanks much!

Metadata