Skip to content

Commit

Permalink
devices: show: Print LmP version if available
Browse files Browse the repository at this point in the history
Signed-off-by: Mike <[email protected]>
  • Loading branch information
mike-sul committed Jul 25, 2023
1 parent 8e7ff62 commit bda55b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/foundries.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ type Device struct {
Group *DeviceGroup `json:"group"` // Returned in Get API
LastSeen string `json:"last-seen"`
OstreeHash string `json:"ostree-hash"`
LmpVer string `json:"lmp-ver,omitempty"`
DockerApps []string `json:"docker-apps,omitempty"`
Tag string `json:"tag,omitempty"`
Network *NetInfo `json:"network-info,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions subcommands/devices/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func doShow(cmd *cobra.Command, args []string) {
fmt.Printf("Up to date:\t%v\n", device.UpToDate)
fmt.Printf("Target:\t\t%s / sha256(%s)\n", device.TargetName, device.OstreeHash)
fmt.Printf("Ostree Hash:\t%s\n", device.OstreeHash)
if len(device.LmpVer) > 0 {
fmt.Printf("LmP Version:\t%s\n", device.LmpVer)
}
fmt.Printf("Created At:\t%s\n", device.ChangeMeta.CreatedAt)
if len(device.ChangeMeta.CreatedBy) > 0 {
fmt.Printf("Created By:\t%s\n", device.ChangeMeta.CreatedBy)
Expand Down

0 comments on commit bda55b7

Please sign in to comment.