diff options
author | Patel, Ankitkumar <ankit@research.att.com> | 2018-05-29 11:31:55 -0400 |
---|---|---|
committer | Patel, Ankitkumar <ankit@research.att.com> | 2018-05-29 11:32:57 -0400 |
commit | 49a0eac16462c04c285125686fb235c22c9ad607 (patch) | |
tree | e96d5778f5de6cce5d8007febec78e542d1d70e3 /osdf/adapters | |
parent | b259e6ae5bb534e8885f88a02a9165b8b8442f3e (diff) |
Fixed case sensitive resource matching
Fixed the case sensitive matching for resources between policy and request.
Issue-ID: OPTFRA-247
Change-Id: Ic031f6c950b6c6b44bd2e4231a9ef672beea994b
Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
Diffstat (limited to 'osdf/adapters')
-rw-r--r-- | osdf/adapters/policy/interface.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdf/adapters/policy/interface.py b/osdf/adapters/policy/interface.py index 6a6cbb3..dbbf122 100644 --- a/osdf/adapters/policy/interface.py +++ b/osdf/adapters/policy/interface.py @@ -64,6 +64,7 @@ def get_by_scope(rest_client, req, config_local, type_service): scope_fields.extend([get_scope_fields(field, references, req, list_flatten(scope_policies)) if 'get_param' in field else field]) scope_fields = set(list_flatten(scope_fields)) + scope_fields = set([x.lower() for x in scope_fields]) for scope in scope_fields: policies.extend(policy_api_call(rest_client, primary_scope, scope)) scope_policies.append([policy for policy in policies |