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