mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Print artifact source and revision only when available
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
(cherry picked from commit b46e298b4d)
This commit is contained in:
parent
51532e75b2
commit
95c5c5ab30
1 changed files with 6 additions and 2 deletions
|
|
@ -111,8 +111,12 @@ func pullArtifactCmdRun(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
logger.Successf("source %s", meta.Source)
|
||||
logger.Successf("revision %s", meta.Revision)
|
||||
if meta.Source != "" {
|
||||
logger.Successf("source %s", meta.Source)
|
||||
}
|
||||
if meta.Revision != "" {
|
||||
logger.Successf("revision %s", meta.Revision)
|
||||
}
|
||||
logger.Successf("digest %s", meta.Digest)
|
||||
logger.Successf("artifact content extracted to %s", pullArtifactArgs.output)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue