Skip to content

Commit

Permalink
feat(cloud): Ignore image quotas on error
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
  • Loading branch information
craciunoiuc committed Jan 9, 2025
1 parent aeda0f8 commit 57115e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/cli/kraft/cloud/quotas/quotas.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ func (opts *QuotasOptions) Run(ctx context.Context, _ []string) error {
return fmt.Errorf("could not get quotas: %w", err)
}

imageResp, err := client.Images().WithMetro(opts.metro).Quotas(ctx)
if err != nil {
return fmt.Errorf("could not get image quotas: %w", err)
}
// Do not check error here, the print will just hide the field if empty
imageResp, _ := client.Images().WithMetro(opts.metro).Quotas(ctx)

if err = iostreams.G(ctx).StartPager(); err != nil {
log.G(ctx).Errorf("error starting pager: %v", err)
Expand Down

0 comments on commit 57115e8

Please sign in to comment.