update cc_users_groups for uid parameter must be set as string

Bug #1918719 reported by Samuel Matzek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Undecided
Unassigned

Bug Description

The User and Groups module's uid parameter does not take effect unless you specify its value as a string.

I do not know if this is a code defect or if it is working as designed. If it is working as designed, it would be nice if the documentation were updated to note that uid should be set as a string instead of an integer.

This line of code in the base distro class only appends the key-val to the useradd command args if the val is a string:
https://github.com/canonical/cloud-init/blob/d95b448fe106146b7510f7b64f2e83c51943f04d/cloudinit/distros/__init__.py#L488

Changed in cloud-init:
status: New → Triaged
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
Revision history for this message
Samuel Matzek (smatzek) wrote :

This is a duplicate of 1875772 and was fixed under https://github.com/canonical/cloud-init/pull/1280

Changed in cloud-init:
status: Expired → Fix Released
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.