Skip to content

Commit

Permalink
mantain default behavior of os.FileMode: 0o777
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofaresin committed Dec 1, 2023
1 parent fe5a8e9 commit 7f8c418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nfs-subdir-external-provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi
}
}

createMode := os.FileMode(0777)
createMode := os.FileMode(0o777)
annotationCreateMode, exists := metadata.annotations["nfs.io/createMode"]
if exists {
annotationCreateModeUInt, err := strconv.ParseUint(annotationCreateMode, 8, 32)
Expand Down

0 comments on commit 7f8c418

Please sign in to comment.