From 29b7ac636b6a26801c2a48cc8b807862fc1422ca Mon Sep 17 00:00:00 2001 From: dwelch-spike <53876192+dwelch-spike@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:32:49 -0800 Subject: [PATCH] tools-2692 fix force flag when version not supplied in -a or file metadata (#27) --- cmd/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/convert.go b/cmd/convert.go index 9edfba4..266aa22 100644 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -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) } }