Skip to content

Commit

Permalink
We were too optimist in checking release, this breaks the if version …
Browse files Browse the repository at this point in the history
…is "create" so rolling

back this in the case of opts.Release

[#180980049] improvements for release upload handling in Bosh CLI / Opsman
  • Loading branch information
lnguyen committed Jan 25, 2022
1 parent e75f6a6 commit 0ebe93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upload_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewUploadReleaseCmd(
func (c UploadReleaseCmd) Run(opts UploadReleaseOpts) error {
switch {
case opts.Release != nil:
return c.uploadIfNecessary(opts, c.uploadFile)
return c.uploadRelease(opts.Release, opts)
case opts.Args.URL.IsRemote():
return c.uploadIfNecessary(opts, c.uploadRemote)
case opts.Args.URL.IsGit():
Expand Down

0 comments on commit 0ebe93a

Please sign in to comment.