Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1x committed Apr 17, 2020
1 parent cb341d5 commit 305cb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/asset/manifests/vsphere/cloudproviderconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func CloudProviderConfig(clusterName string, p *vspheretypes.Platform) (string,
printIfNotEmpty(buf, "datacenter", p.Datacenter)
printIfNotEmpty(buf, "default-datastore", p.DefaultDatastore)
printIfNotEmpty(buf, "folder", p.Folder)
if p.Folder == "" {
printIfNotEmpty(buf, "folder", clusterName)
}
if p.Folder == "" {
printIfNotEmpty(buf, "folder", clusterName)
}
fmt.Fprintln(buf, "")

fmt.Fprintf(buf, "[VirtualCenter %q]\n", p.VCenter)
Expand Down

0 comments on commit 305cb1b

Please sign in to comment.