PyJobTransforms: Fix for ATLINFR-3411 (manual cherry-pick from master)
I need to backport this fix so that I can access AMI
tag information (in 21.9 jobs) on the SPOT test machine, which doesn't have outside access.
See merge request !30782 (merged)