Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(component): List installed version instead of latest #1439

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Nov 7, 2023

Summary

From @cody-lw:

Minor brevity thing I noticed this morning, lacework component list will return the
version available rather than the current installed version of a component.

This code tries to clarify that, when a component IS installed and HAS an update, we still display
the installed version, rather that the latest version.

Users can use lacework component show <component> to see where they are and what
can they upgrade to, example:

$ lacework component show sca
  NAME        STATUS                DESCRIPTION
-------+------------------+------------------------------
  sca    Update Available   Software Component Analysis

The following versions of this component are available to install:
 - 0.0.63
 - 0.0.64
 - 0.0.65
 - 0.0.66
 - 0.0.67
 - 0.0.68
 - 0.0.69
 - 0.0.70
 - 0.0.71
 - 0.0.72
 - 0.0.73
 - 0.0.74
 - 0.0.75 (installed)
 - 0.0.76
 - 0.0.77
 - 0.0.78
 - 0.0.79

Issue

Reported via Slack.

@afiune afiune requested a review from a team as a code owner November 7, 2023 00:29
Copy link
Contributor

@ipcrm ipcrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally & LGTM! :shipit:

@afiune afiune merged commit d92b2af into main Nov 7, 2023
1 check passed
@afiune afiune deleted the afiune/cdk/component-list branch November 7, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants