Add support for Packages on EPAS.

This commit is contained in:
Harshal Dhumal
2016-08-22 12:30:16 +01:00
committed by Dave Page
parent fe54a124da
commit cf1be2a320
68 changed files with 2749 additions and 17 deletions

View File

@@ -98,9 +98,9 @@ def parse_priv_to_db(str_privileges, allowed_acls=[]):
db_privileges[privilege['privilege_type']]
)
# If we have all acl then just return all
if len(priv_with_grant) == allowed_acls_len:
if len(priv_with_grant) == allowed_acls_len > 1:
priv_with_grant = ['ALL']
if len(priv_without_grant) == allowed_acls_len:
if len(priv_without_grant) == allowed_acls_len > 1:
priv_without_grant = ['ALL']
# Appending and returning all ACL
privileges.append({