fixup groups
This commit is contained in:
parent
883cad6a5f
commit
a47bdcfb39
4 changed files with 14 additions and 22 deletions
|
@ -1,11 +0,0 @@
|
|||
@metadata_processor
|
||||
def add_users_to_libvirt_group(metadata):
|
||||
if 'users' in metadata:
|
||||
for user in metadata['users']:
|
||||
if 'groups' not in metadata['users'][user]:
|
||||
metadata['users'][user]['groups'] = []
|
||||
|
||||
if 'libvirt' not in metadata['users'][user]['groups']:
|
||||
metadata['users'][user]['groups'].append('libvirt')
|
||||
|
||||
return metadata, RUN_ME_AGAIN
|
Loading…
Add table
Add a link
Reference in a new issue