← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1077245] Re: Group configuration not allowing members

 

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1077245

Title:
  Group configuration not allowing members

Status in Init scripts for use on cloud images:
  Fix Released

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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1077245/+subscriptions