Update README, remove dublicated lines

This commit is contained in:
Hanna Bledai 2020-10-08 15:40:37 +03:00
parent 8433ff96f9
commit 513433d4b1
2 changed files with 7 additions and 9 deletions

View File

@ -109,7 +109,7 @@ You may also want to change the PROVISIONER_NAME above from ``fuseim.pri/ifs`` t
**Step 5: Deploying your storage class**
***Paraments:***
***paraments:***
| Name | Description | Default |
|------|-------------|:--------:|

View File

@ -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)
}
}