-Fixed problem with for loop
This commit is contained in:
parent
01a5933693
commit
99781ff7e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue