Skip to content

Commit cb29fc3

Browse files
authored
Return Clone Volume Exists Error
1 parent 323b105 commit cb29fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage_drivers/ontap/ontap_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3370,7 +3370,7 @@ func cloneFlexvol(
33703370
return fmt.Errorf("error checking for existing volume: %v", err)
33713371
}
33723372
if volExists {
3373-
return fmt.Errorf("volume %s already exists", name)
3373+
return drivers.NewVolumeExistsError(name)
33743374
}
33753375

33763376
// If no specific snapshot was requested, create one

0 commit comments

Comments
 (0)