Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Show unknown tag for workload in list-images
Browse files Browse the repository at this point in the history
If we are unable to match the image of the workload to a tag from our
cache, we still list the name of the tag and a question mark where we
would normally list the created date, to indicate we have no record of
it in our cache.
  • Loading branch information
hiddeco committed May 9, 2019
1 parent 838344d commit e0a7271
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/fluxctl/list_images_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ func (opts *imageListOpts) RunE(cmd *cobra.Command, args []string) error {
fmt.Fprintf(out, "\t\t%s %s\t%s\n", running, tag, createdAt)
}
}
if !foundRunning {
running := "'->"
if currentTag == "" {
currentTag = "(untagged)"
}
fmt.Fprintf(out, "\t\t%s %s\t%s\n", running, currentTag, "?")

}
workloadName = ""
}
}
Expand Down

0 comments on commit e0a7271

Please sign in to comment.