Fix loading from cache in ec2.py inventory plugin.
Merge pull request #5195 from Multifarious/devel

Fix loading from cache in ec2.py inventory plugin.