Bug #3814
closed
Errors when using the CLI
Added by Og Maciel about 11 years ago.
Updated over 6 years ago.
Category:
Foreman commands (obsolete)
|
Description
- hammer user list
Error: can't convert String into Integer
- hammer os list
Error: undefined method `has_key?' for "":String
- hammer user info --id 1
Error: undefined method `[]' for nil:NilClass
Unfortunately I don't see anything in the logs
Files
- foreman-debug
HOSTNAME: xxxxxxxxxxxxxxxxxxxx
OS: redhat
RELEASE: Red Hat Enterprise Linux Server release 6.4 (Santiago)
FOREMAN: 1.4-develop
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 2.7.23
rubygem-hammer_cli-0.0.11-1.el6.noarch
rubygem-hammer_cli_foreman-0.0.11-1.el6.noarch
rubygem-foreman_api-0.1.8-1.el6.noarch
- Category set to Foreman commands (obsolete)
- Status changed from New to Resolved
- Assignee set to Martin Bacovsky
- Target version set to 1.9.3
- Translation missing: en.field_release set to 2
This is caused by new response format in API v2. The fix was merged and will be included in hammer_cli and hammer_cli_foreman >= 0.0.12
Also available in: Atom
PDF