← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1918719] [NEW] update cc_users_groups for uid parameter must be set as string

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
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/1918719

Title:
  update cc_users_groups for uid parameter must be set as string

Status in cloud-init:
  New

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

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


Follow ups