Skip to content

Commit

Permalink
tools-2692 fix force flag when version not supplied in -a or file met…
Browse files Browse the repository at this point in the history
…adata (#27)
  • Loading branch information
dwelch-spike authored Dec 5, 2023
1 parent 4d5b50d commit 29b7ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func newConvertCmd() *cobra.Command {
// try populating from the metadata
if version == "" {
version, err = getMetaDataItem(fdata, metaKeyAerospikeVersion)
if err != nil {
if err != nil && !force {
return errors.Join(errMissingAerospikeVersion, err)
}
}
Expand Down

0 comments on commit 29b7ac6

Please sign in to comment.