Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jwangatabsolute authored Jul 15, 2021
1 parent e747edb commit 9b5b3e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/nfs-subdir-external-provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,16 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi
// default is true
withPathSuffixBool := true
if existsWithPathSuffix {
var err error
var err error
withPathSuffixBool, err = strconv.ParseBool(withPathSuffix)
if err != nil {
return nil, controller.ProvisioningFinished, fmt.Errorf("storageClass.withPathSuffix is not a boolean value")
}
}
if !withPathSuffixBool {
path = p.path
fullPath = mountPath
}
else if exists {
fullPath = mountPath
} else if exists {
customPath := metadata.stringParser(pathPattern)
if customPath != "" {
path = filepath.Join(p.path, customPath)
Expand Down

0 comments on commit 9b5b3e2

Please sign in to comment.