Skip to content

Commit

Permalink
Fix for SMB volume import
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalv-netapp authored Nov 15, 2023
1 parent e32b0f4 commit 80ffc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage_drivers/azure/api/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ func (c Client) ModifyVolume(
}

// Modify the export-rule to restrict the kerberos protocol type
if &anfVolume.Properties.ExportPolicy.Rules[0] != nil && &exportRule != nil {
if len(anfVolume.Properties.ExportPolicy.Rules) > 0 && &exportRule != nil {
anfVolume.Properties.ExportPolicy.Rules[0].Nfsv41 = &exportRule.Nfsv41
anfVolume.Properties.ExportPolicy.Rules[0].Kerberos5ReadWrite = &exportRule.Kerberos5ReadWrite
anfVolume.Properties.ExportPolicy.Rules[0].Kerberos5ReadOnly = &exportRule.Kerberos5ReadOnly
Expand Down

0 comments on commit 80ffc02

Please sign in to comment.