Skip to content

Commit f638501

Browse files
changed to pointer
1 parent 7a5d40e commit f638501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

venonactl/cmd/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ var installCmd = &cobra.Command{
169169
s.CodefreshAPI.BuildNodeSelector = bns
170170
builderInstallOpt.BuildNodeSelector = bns
171171

172-
err = validateInstallOptions(*builderInstallOpt)
172+
err = validateInstallOptions(builderInstallOpt)
173173
if err != nil {
174174
dieOnError(err)
175175
}
@@ -223,7 +223,7 @@ func parseNodeSelector(s string) (nodeSelector, error) {
223223
return nodeSelector{v[0]: v[1]}, nil
224224
}
225225

226-
func validateInstallOptions(opts plugins.InstallOptions) (error) {
226+
func validateInstallOptions(opts* plugins.InstallOptions) (error) {
227227
if len(opts.ClusterName) > clusterNameMaxLength {
228228
return errors.New(fmt.Sprintf("cluster name lenght is limited to %d", clusterNameMaxLength))
229229
}

0 commit comments

Comments
 (0)