Group configuration not allowing members

Bug #1077245 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Undecided
Joshua Harlow

Bug Description

Seems the normalization isn't handling the inner dict case correctly.

>>> from cloudinit import distros
>>> distros._normalize_groups(x)
{'groups': [{'ubuntu': ['foo', 'bar']}, 'cloud-users']}
>>> distros._normalize_groups(x['groups'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cloudinit/distros/__init__.py", line 431, in _normalize_groups
    c_grp_cfg[i] = []
TypeError: unhashable type: 'dict'

Related branches

Joshua Harlow (harlowja)
Changed in cloud-init:
assignee: nobody → Joshua Harlow (harlowja)
status: New → Confirmed
status: Confirmed → New
Joshua Harlow (harlowja)
Changed in cloud-init:
status: New → Fix Committed
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.