Skip to content

Commit

Permalink
rbac: fixing format for rh identity header after gunicorn update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaditya Chauhan authored and jhutar committed Jun 18, 2024
1 parent da06add commit b7b9ae2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions opl/rbac_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def load_apps_and_perms(url_base, x_rh_identity, application=[]):

url = f"{url_base}/permissions/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -125,7 +125,7 @@ def create_tenant(url_base, x_rh_identity):
# with unknown account will create new tenant for it
url = f"{url_base}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -136,7 +136,7 @@ def create_tenant(url_base, x_rh_identity):
def create_group(url_base, x_rh_identity):
url = f"{url_base}/groups/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -151,7 +151,7 @@ def create_group(url_base, x_rh_identity):
def create_role(url_base, x_rh_identity):
url = f"{url_base}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -166,7 +166,7 @@ def create_role(url_base, x_rh_identity):
def add_roles_to_group(url_base, x_rh_identity, role_list, group_uuid):
url = f"{url_base}/groups/{group_uuid}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand Down

0 comments on commit b7b9ae2

Please sign in to comment.