mirror of
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.git
synced 2026-09-30 02:56:31 +02:00
Update README, remove dublicated lines
This commit is contained in:
@@ -168,14 +168,12 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
|
||||
// Otherwise, archive it.
|
||||
archiveOnDelete, exists := storageClass.Parameters["archiveOnDelete"]
|
||||
if exists {
|
||||
if exists {
|
||||
archiveBool, err := strconv.ParseBool(archiveOnDelete)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !archiveBool {
|
||||
return os.RemoveAll(oldPath)
|
||||
}
|
||||
archiveBool, err := strconv.ParseBool(archiveOnDelete)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !archiveBool {
|
||||
return os.RemoveAll(oldPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user