Fixed policy version's Document type for AWS managed policies (#2234)
* Added checking Document's type in AWS managed policy version response. * Fixed policy version's Document type for AWS managed policies.
This commit is contained in:
parent
3833449b36
commit
ab8a189bbf
2 changed files with 3 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class AWSManagedPolicy(ManagedPolicy):
|
|||
return cls(name,
|
||||
default_version_id=data.get('DefaultVersionId'),
|
||||
path=data.get('Path'),
|
||||
document=data.get('Document'),
|
||||
document=json.dumps(data.get('Document')),
|
||||
create_date=datetime.strptime(data.get('CreateDate'), "%Y-%m-%dT%H:%M:%S+00:00"),
|
||||
update_date=datetime.strptime(data.get('UpdateDate'), "%Y-%m-%dT%H:%M:%S+00:00"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue