mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-21 07:01:47 +00:00
Merge pull request #1352 from SomtochiAma/handle-error
Remove redundant getCommand for image repository
This commit is contained in:
commit
6a37649ee6
1 changed files with 0 additions and 7 deletions
|
|
@ -49,13 +49,6 @@ var getImageAllCmd = &cobra.Command{
|
||||||
list: &imageUpdateAutomationListAdapter{&autov1.ImageUpdateAutomationList{}},
|
list: &imageUpdateAutomationListAdapter{&autov1.ImageUpdateAutomationList{}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
c := getCommand{
|
|
||||||
apiType: imageRepositoryType,
|
|
||||||
list: imageRepositoryListAdapter{&imagev1.ImageRepositoryList{}},
|
|
||||||
}
|
|
||||||
if err := c.run(cmd, args); err != nil {
|
|
||||||
logger.Failuref(err.Error())
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, c := range allImageCmd {
|
for _, c := range allImageCmd {
|
||||||
if err := c.run(cmd, args); err != nil {
|
if err := c.run(cmd, args); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue