Skip to content

Commit

Permalink
do not fail if organization tag is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jul 23, 2024
1 parent 85ca42a commit 9d6f964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions pkg/download_s3_archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ func DownloadS3Archive(executionId string, directory string) {
organizationId := findOrganizationInTag(archiveResponse.Tags)
if organizationId == nil {
log.Warning("Could not find organization tags")
return
}

organization, err := utils.GetOrganizationById(*organizationId)
if err != nil {
log.Errorf("Cannot find organization with id %s: %v", *organizationId, err)
return
}

path := filepath.Join(directory, fileName)
Expand All @@ -61,10 +54,9 @@ func DownloadS3Archive(executionId string, directory string) {
location = "./" + path
}

utils.PrintlnInfo(fmt.Sprintf("The downloaded archive belongs to organization: '%s'", organization.Name))
utils.PrintlnInfo(fmt.Sprintf("Would you like to write the file in '%s' ?", location))
// check if it is the expected org
if !utils.Validate("organization") {
if !utils.Validate("") {
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func GetCurrentVersion() string {
return "0.98.0" // ci-version-check
return "0.99.0" // ci-version-check
}

func GetLatestOnlineVersionUrl() (string, error) {
Expand Down

0 comments on commit 9d6f964

Please sign in to comment.