Fix indentation in ec2.py
Merge pull request #8119 from adamchainz/devel

Fix indentation in ec2.py