Skip to content

Commit

Permalink
Issue #5 fix kwargs in describe_type, get_resource
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider-vertical-relevance committed May 3, 2022
1 parent 621837f commit 2600d99
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_resource_schema(self,*,resource_type):
try:
r = cfn.describe_type(
Type = 'RESOURCE',
type_name = resource_type,
TypeName = resource_type,
)
except cfn.exceptions.TypeNotFoundException:
print(f'TypeNotFoundException: {resource_type}')
Expand All @@ -67,8 +67,8 @@ def get_resource_schema(self,*,resource_type):
def cloudcontrol_get(self,*,type_name,identifier):
try:
r = cloudcontrol.get_resource(
type_name = type_name,
identifier = identifier
TypeName = type_name,
Identifier = identifier
)
except ClientError as e:
print(f'ClientError\n{e}')
Expand Down Expand Up @@ -140,7 +140,7 @@ def parse_config_event(self):
item_status = configuration_item["configurationItemStatus"]
print(f'item_status:\n{item_status}')

self.resource_type = configuration_item['resource_type']
self.resource_type = configuration_item['resourceType']
print(f'resource_type:\n{self.resource_type}')

resource_configuration = configuration_item['configuration']
Expand Down

0 comments on commit 2600d99

Please sign in to comment.