Actions
Bug #17936
closedFetching default org/loc from server fails
Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Description
An attempt to get user's default organization or location from server ends up with no method exception.
Credentials were removed with the api sessions re-work.
Steps to reproduce:
> hammer defaults add --param-name organization_id --provider foreman Added organization_id default-option with value that will be generated from the server. > hammer defaults list ----------------|--------------------- PARAMETER | VALUE ----------------|--------------------- organization_id | Provided by: Foreman > hammer user list Error: undefined method `credentials' for HammerCLIForeman:Module
NoMethodError (undefined method `credentials' for HammerCLIForeman:Module): /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/defaults.rb:24:in `get_user' /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/defaults.rb:13:in `get_defaults' /root/hammer/hammer-cli/lib/hammer_cli/defaults.rb:54:in `get_defaults' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:243:in `add_custom_defaults' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:229:in `block in all_options' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:227:in `each' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:227:in `inject' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:227:in `all_options' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:236:in `options' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:34:in `parse' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/command.rb:62:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:24:in `run' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/command.rb:63:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:24:in `run' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/command.rb:63:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:24:in `run' /usr/local/rvm/gems/ruby-2.3.0/gems/clamp-1.1.1/lib/clamp/command.rb:132:in `run' ./bin/hammer:125:in `<main>'
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/275 added
Updated by Marek Hulán almost 8 years ago
- Target version changed from 1.10.2 to 1.11.2
Updated by Marek Hulán almost 8 years ago
- Target version changed from 1.11.2 to 1.11.4
Updated by Marek Hulán almost 8 years ago
- Target version changed from 1.11.4 to 1.12.1
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|f04e5b159c0931f5c99e3b7d16aacee0b51bab6a.
Updated by Tomáš Strachota over 7 years ago
- Translation missing: en.field_release set to 234
Actions