From ea4e081f716fd52037cd00b973cb63439c3fcb8b Mon Sep 17 00:00:00 2001 From: Thomas Oulevey Date: Dec 04 2015 14:22:31 +0000 Subject: fix image issue --- diff --git a/scripts/fas_perms_to_koji.py b/scripts/fas_perms_to_koji.py index 4c3768c..8825022 100755 --- a/scripts/fas_perms_to_koji.py +++ b/scripts/fas_perms_to_koji.py @@ -40,6 +40,7 @@ SERVERCA_CERT = os.path.expanduser('/etc/pki/ca-trust/extracted/openssl/ca-bundl USER = 'koji' FASDUMP = '/etc/bsadmin/groups' SYSTEM_USERS = ['koji', 'kojira'] +IMAGE_PERM = ['virt', 'cloud', 'atomic'] def get_user_list(): users = [(x['name'], x['id']) for x in kojiclient.listUsers()] @@ -83,7 +84,8 @@ def get_users_perms_from_file(): perm = "build-"+sig userlist[user].append(perm) userlist[user].append('build') - + if sig in IMAGE_PERM: + userlist[user].append('image') return userlist if len(userlist) else None