Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cc_users_groups for uid parameter must be set as string #3855

Closed
ubuntu-server-builder opened this issue May 12, 2023 · 2 comments
Closed
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1918719

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2021-03-11T18:54:53.011590+00:00
date_fix_committed = None
date_fix_released = None
id = 1918719
importance = undecided
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1918719
milestone = None
owner = smatzek
owner_name = Samuel Matzek
private = False
status = triaged
submitter = smatzek
submitter_name = Samuel Matzek
tags = []
duplicates = []

Launchpad user Samuel Matzek(smatzek) wrote on 2021-03-11T18:54:53.011590+00:00

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:

if key in useradd_opts and val and isinstance(val, str):

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 12, 2023
@smatzek
Copy link

smatzek commented May 12, 2023

Duplicate of #1280

@TheRealFalcon
Copy link
Member

Thanks @smatzek , I'll close it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

3 participants