Skip to content

Commit da5b7b6

Browse files
committed
chore: make changes on SetVolumeOwnership
fix
1 parent 3289934 commit da5b7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/azurefile/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func SetVolumeOwnership(path, gid, policy string) error {
268268
if policy != "" {
269269
fsGroupChangePolicy = v1.PodFSGroupChangePolicy(policy)
270270
}
271-
return volume.SetVolumeOwnership(&VolumeMounter{path: path}, path, &gidInt64, &fsGroupChangePolicy, nil)
271+
return volume.NewVolumeOwnership(&VolumeMounter{path: path}, path, &gidInt64, &fsGroupChangePolicy, nil).ChangePermissions()
272272
}
273273

274274
// setKeyValueInMap set key/value pair in map

0 commit comments

Comments
 (0)