Project

General

Profile

Actions

Bug #14870

open

The same environment is resolved many times during one hammer command

Added by Martin Bacovsky almost 8 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I hit this issue while debugging CV resolvers. I found out that the all_options redefined in [1] is no more "lazy" and the resolved environment is not preseved for consequent all_options invocations. It seems that the all_options is redefined in other places as well with similar behaviour.

[1] https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/lifecycle_environment_name_resolvable.rb#L12-L18

How to reproduce:

1/ hammer -d content-host list --lifecycle-environment env1 --organization-id 1

2/ watch the log for the recurring
[ INFO 2016-04-28T18:42:47 API] GET /katello/api/organizations/1/environments
[DEBUG 2016-04-28T18:42:47 API] Params: {
"name" => "env1"
}

Actions #1

Updated by Tomáš Strachota over 7 years ago

  • Project changed from Hammer CLI to Katello
  • Category changed from 74 to Hammer
Actions #2

Updated by Eric Helms over 7 years ago

  • translation missing: en.field_release set to 114
Actions

Also available in: Atom PDF