mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-12 07:59:29 -05:00
cli: add missing logger to versionCollector object (#1183)
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
parent
b8112f3dc2
commit
1c977b3105
@ -82,6 +82,7 @@ func runUpgradeCheck(cmd *cobra.Command, args []string) error {
|
|||||||
rekor: rekor,
|
rekor: rekor,
|
||||||
flags: flags,
|
flags: flags,
|
||||||
cliVersion: constants.VersionInfo,
|
cliVersion: constants.VersionInfo,
|
||||||
|
log: log,
|
||||||
},
|
},
|
||||||
log: log,
|
log: log,
|
||||||
}
|
}
|
||||||
@ -316,7 +317,7 @@ func (v *versionCollector) newImages(ctx context.Context, version string, csp cl
|
|||||||
if !v.flags.force {
|
if !v.flags.force {
|
||||||
return nil, fmt.Errorf("cluster image version (%s) newer than CLI version (%s)", currentImageMinorVer, currentCLIMinorVer)
|
return nil, fmt.Errorf("cluster image version (%s) newer than CLI version (%s)", currentImageMinorVer, currentCLIMinorVer)
|
||||||
}
|
}
|
||||||
if _, err := fmt.Fprintf(v.writer, "WARNING: CLI version is older than cluster image version. Continuing due to force flag."); err != nil {
|
if _, err := fmt.Fprintln(v.writer, "WARNING: CLI version is older than cluster image version. Continuing due to force flag."); err != nil {
|
||||||
return nil, fmt.Errorf("writing to buffer: %w", err)
|
return nil, fmt.Errorf("writing to buffer: %w", err)
|
||||||
}
|
}
|
||||||
case cliImageCompare == 0:
|
case cliImageCompare == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user