Missing None check in ec2 command