Correct flake8 failures

This commit is contained in:
Karl Gutwin 2018-08-08 11:13:25 -04:00
parent 5ae5ae0efa
commit de4d5d9d62
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ class Policy(BaseModel):
description=None, description=None,
document=None, document=None,
path=None): path=None):
#self.document = document or {}
self.name = name self.name = name
self.attachment_count = 0 self.attachment_count = 0

View File

@ -62,7 +62,7 @@ class IamResponse(BaseResponse):
policy_arn = self._get_param('PolicyArn') policy_arn = self._get_param('PolicyArn')
policy = iam_backend.get_policy(policy_arn) policy = iam_backend.get_policy(policy_arn)
template = self.response_template(GET_POLICY_TEMPLATE) template = self.response_template(GET_POLICY_TEMPLATE)
return template.render(policy=policy) return template.render(policy=policy)
def list_attached_role_policies(self): def list_attached_role_policies(self):
marker = self._get_param('Marker') marker = self._get_param('Marker')
@ -611,7 +611,7 @@ GET_POLICY_TEMPLATE = """<GetPolicyResponse>
<GetPolicyResult> <GetPolicyResult>
<Policy> <Policy>
<PolicyName>{{ policy.name }}</PolicyName> <PolicyName>{{ policy.name }}</PolicyName>
<Description>{{ policy.description }}</Description> <Description>{{ policy.description }}</Description>
<DefaultVersionId>{{ policy.default_version_id }}</DefaultVersionId> <DefaultVersionId>{{ policy.default_version_id }}</DefaultVersionId>
<PolicyId>{{ policy.id }}</PolicyId> <PolicyId>{{ policy.id }}</PolicyId>
<Path>{{ policy.path }}</Path> <Path>{{ policy.path }}</Path>