Commit 513433d4 by Hanna Bledai

Update README, remove dublicated lines

parent 8433ff96
...@@ -109,7 +109,7 @@ You may also want to change the PROVISIONER_NAME above from ``fuseim.pri/ifs`` t ...@@ -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** **Step 5: Deploying your storage class**
***Paraments:*** ***paraments:***
| Name | Description | Default | | Name | Description | Default |
|------|-------------|:--------:| |------|-------------|:--------:|
......
...@@ -168,14 +168,12 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error { ...@@ -168,14 +168,12 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error {
// Otherwise, archive it. // Otherwise, archive it.
archiveOnDelete, exists := storageClass.Parameters["archiveOnDelete"] archiveOnDelete, exists := storageClass.Parameters["archiveOnDelete"]
if exists { if exists {
if exists { archiveBool, err := strconv.ParseBool(archiveOnDelete)
archiveBool, err := strconv.ParseBool(archiveOnDelete) if err != nil {
if err != nil { return err
return err }
} if !archiveBool {
if !archiveBool { return os.RemoveAll(oldPath)
return os.RemoveAll(oldPath)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment