diff options
author | Florian Dambrine <android.florian@gmail.com> | 2016-09-08 04:25:17 -0600 |
---|---|---|
committer | Rene Moser <mail@renemoser.net> | 2016-09-08 13:36:56 +0200 |
commit | d2fb8abe393a3d987e2eb327afb6f8402796f590 (patch) | |
tree | ab19a088e54ec55ed7c010e875ec6a72df4f1912 | |
parent | c4791e39cfbcdb715b516b6c045dc880535e32aa (diff) | |
download | ansible-modules-core-d2fb8abe393a3d987e2eb327afb6f8402796f590.tar.gz |
Fix ec2 module source_dest_check when running on non VPC instances (EC2 Classic) (#3243)
-rw-r--r-- | cloud/amazon/ec2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/amazon/ec2.py b/cloud/amazon/ec2.py index 0b660e0d..622f485c 100644 --- a/cloud/amazon/ec2.py +++ b/cloud/amazon/ec2.py @@ -1284,7 +1284,7 @@ def startstop_instances(module, ec2, instance_ids, state, instance_tags): for inst in res.instances: # Check "source_dest_check" attribute - if inst.get_attribute('sourceDestCheck')['sourceDestCheck'] != source_dest_check: + if inst.vpc_id is not None and inst.get_attribute('sourceDestCheck')['sourceDestCheck'] != source_dest_check: inst.modify_attribute('sourceDestCheck', source_dest_check) changed = True |