Skip to content

Commit

Permalink
Fix cmd failure if neither git/commitId nor customDescription are
Browse files Browse the repository at this point in the history
provided
  • Loading branch information
gerstneralex committed Nov 30, 2022
1 parent 44d7176 commit c362681
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/tmsUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import (
"github.com/pkg/errors"
)

const DEFAULT_DESCRIPTION = "tmsUpload"

type uaa struct {
Url string `json:"url"`
ClientId string `json:"clientid"`
Expand Down Expand Up @@ -116,7 +118,11 @@ func runTmsUpload(config tmsUploadOptions, communicationInstance tms.Communicati
return fmt.Errorf("mta file %s not found", mtaPath)
}

description := config.CustomDescription
description := DEFAULT_DESCRIPTION
if config.CustomDescription != "" {
description = config.CustomDescription
}

namedUser := config.NamedUser
nodeName := config.NodeName
mtaVersion := config.MtaVersion
Expand Down

0 comments on commit c362681

Please sign in to comment.