Project

General

Profile

Bug #14870

The same environment is resolved many times during one hammer command

Added by Martin Bacovsky about 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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"
}

History

#1 Updated by Tomáš Strachota almost 3 years ago

  • Project changed from Hammer CLI to Katello
  • Category changed from 74 to Hammer

#2 Updated by Eric Helms almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF