-Fixed problem with for loop

This commit is contained in:
Chagui- 2019-11-21 12:39:17 -03:00
parent 01a5933693
commit 99781ff7e2

View File

@ -82,8 +82,8 @@ class FakeThingGroup(BaseModel):
if parent_group_name:
self.metadata["parentGroupName"] = parent_group_name
self.metadata["rootToParentThingGroups"] = [
{"groupName": g.thing_group_name, "groupArn": g.arn}
for g in thing_groups
{"groupName": group.thing_group_name, "groupArn": group_arn}
for group_arn, group in thing_groups.items()
]
self.arn = "arn:aws:iot:%s:1:thinggroup/%s" % (
self.region_name,