From 870974e0bec157ac3683c66c82d394b8b8af4fcb Mon Sep 17 00:00:00 2001 From: Pilou Date: Mon, 9 Oct 2017 12:20:31 +0200 Subject: [PATCH] ec2_vpc_route_table: fix broken import (#31459) --- lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py | 2 -- test/sanity/import/skip.txt | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py index 46532e31955..5c19daed65d 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py @@ -142,8 +142,6 @@ try: HAS_BOTO = True except ImportError: HAS_BOTO = False - if __name__ != '__main__': - raise class AnsibleRouteTableException(Exception): diff --git a/test/sanity/import/skip.txt b/test/sanity/import/skip.txt index effa91c71d0..3c90812f17e 100644 --- a/test/sanity/import/skip.txt +++ b/test/sanity/import/skip.txt @@ -1,5 +1,4 @@ lib/ansible/modules/cloud/amazon/cloudtrail.py -lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py lib/ansible/modules/cloud/amazon/ec2_win_password.py lib/ansible/modules/cloud/amazon/s3_sync.py lib/ansible/modules/cloud/azure/azure.py