Skip to content

Commit

Permalink
Merge pull request #1138 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1137-to-v1.3.x

[v1.3.x] [OSP-33530] Allow roles_data.yaml to have `./` prefix for checking fencing roles
  • Loading branch information
openshift-merge-bot[bot] authored Jan 28, 2025
2 parents ad6ea78 + 081f147 commit e932ba6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/fencing.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func GetCustomFencingRoles(customBinaryData map[string][]byte) ([]string, error)

switch header.Typeflag {
case tar.TypeReg:
if header.Name == TripleORolesDataFile {
if header.Name == TripleORolesDataFile || header.Name == "./"+TripleORolesDataFile {
buf, err := io.ReadAll(tarReader)

if err != nil {
Expand Down
Loading

0 comments on commit e932ba6

Please sign in to comment.