Skip to content

Commit

Permalink
Support [org] in addition to [ORG] in policy.xml fiels on deploy (#11547
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ivarne authored Nov 13, 2023
1 parent c5bad9e commit ca0e89e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task UpdateApplicationAuthorizationPolicyAsync(
FileSystemObject policyFile = await GetAuthorizationPolicyFileFromGitea(org, app, shortCommitId);
byte[] data = Convert.FromBase64String(policyFile.Content);
string policyFileContent = Encoding.UTF8.GetString(data);
policyFileContent = policyFileContent.Replace("[ORG]", org).Replace("[APP]", app);
policyFileContent = policyFileContent.Replace("[ORG]", org).Replace("[org]", org).Replace("[APP]", app);
await _authorizationPolicyClient.SavePolicy(org, app, policyFileContent, envName);
}

Expand Down

0 comments on commit ca0e89e

Please sign in to comment.