Skip to content

Commit 6ea4b10

Browse files
authored
Code cleanup (#13)
* Remove old Python 2.x boilerplate * Rename LICENSE since it's not actually markdown * Fix grammar issues identifed by PyCharm
1 parent b578ae1 commit 6ea4b10

16 files changed

+2
-47
lines changed
File renamed without changes.

galaxy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### REQUIRED
22

33
# The namespace of the collection. This can be a company/brand/organization or product namespace under which all
4-
# content lives. May only contain alphanumeric characters and underscores. Additionally namespaces cannot start with
4+
# content lives. May only contain alphanumeric characters and underscores. Additionally, namespaces cannot start with
55
# underscores or numbers and cannot contain consecutive underscores
66
namespace: mattclay
77

@@ -25,7 +25,7 @@ authors:
2525
# A short summary description of the collection
2626
description: Ansible modules and plugins for working with AWS.
2727

28-
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
28+
# Either a single license or a list of licenses for content inside a collection. Ansible Galaxy currently only
2929
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
3030
license:
3131
- GPL-3.0-or-later

plugins/filter/dictfilter.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Copyright (C) 2016 Matt Clay <[email protected]>
22
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
33

4-
from __future__ import (absolute_import, division, print_function)
5-
__metaclass__ = type
6-
7-
84
def dictfilter(item, keys):
95
return dict((k, item[k]) for k in item if k in keys)
106

plugins/filter/ec2_filters.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Copyright (C) 2016 Matt Clay <[email protected]>
22
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
33

4-
from __future__ import (absolute_import, division, print_function)
5-
__metaclass__ = type
6-
7-
84
def ec2_az_vpc_subnets(zones, subnet, name):
95
return [dict(
106
cidr=map_zone_to_subnet(z, subnet),

plugins/filter/map_format.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Copyright (C) 2017 Matt Clay <[email protected]>
22
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
33

4-
from __future__ import (absolute_import, division, print_function)
5-
__metaclass__ = type
6-
7-
84
def map_format(item, fmt, *args, **kwargs):
95
d = {}
106
d.update(item)

plugins/modules/apigateway.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Copyright (C) 2016 Matt Clay <[email protected]>
33
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
44

5-
from __future__ import (absolute_import, division, print_function)
6-
__metaclass__ = type
7-
85
DOCUMENTATION = '''
96
---
107
module: apigateway

plugins/modules/aws_account_facts.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Copyright (C) 2016 Matt Clay <[email protected]>
33
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
44

5-
from __future__ import (absolute_import, division, print_function)
6-
__metaclass__ = type
7-
85
DOCUMENTATION = '''
96
---
107
module: aws_account_facts

plugins/modules/aws_availability_zone_facts.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Copyright (C) 2016 Matt Clay <[email protected]>
33
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
44

5-
from __future__ import (absolute_import, division, print_function)
6-
__metaclass__ = type
7-
85
DOCUMENTATION = '''
96
---
107
module: aws_availability_zone_facts

plugins/modules/cloudwatch_event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Copyright (C) 2016 Matt Clay <[email protected]>
33
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
44

5-
from __future__ import (absolute_import, division, print_function)
6-
__metaclass__ = type
7-
85
DOCUMENTATION = '''
96
---
107
module: cloudwatch_event

plugins/modules/lambda.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Copyright (C) 2016 Matt Clay <[email protected]>
33
# GNU General Public License v3.0+ (see LICENSE.md or https://www.gnu.org/licenses/gpl-3.0.txt)
44

5-
from __future__ import (absolute_import, division, print_function)
6-
__metaclass__ = type
7-
85
DOCUMENTATION = '''
96
---
107
module: lambda

0 commit comments

Comments
 (0)