Actions
Bug #14311
closedhammer-cli defaults add does not work if no defaults file exist.
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Description
- hammer defaults list
----------|------
PARAMETER | VALUE
----------|------
- hammer defaults providers
---------|------------------------------|-------------------------------------------------------------
PROVIDER | SUPPORTED DEFAULTS | DESCRIPTION
---------|------------------------------|-------------------------------------------------------------
foreman | organization_id, location_id | Use the default organization and/or location from the server
---------|------------------------------|-------------------------------------------------------------
- hammer defaults add --param-name=organization_id --provider=foreman
No such file or directory @ rb_sysopen - /root/.hammer/defaults.yml
- hammer defaults add --param-name=organization_id --param-value=1
No such file or directory @ rb_sysopen - /root/.hammer/defaults.yml
- hammer activation-key list
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.
Tried adding /root/.hammer/defaults.yml
- ll /root/.hammer/defaults.yml
rw-r--r-. 1 root root 0 Mar 21 13:32 /root/.hammer/defaults.yml
- hammer defaults add --param-name=organization_id --param-value=1
Error: undefined method `[]' for false:FalseClass
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/199 added
Updated by Shimon Shtein almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 7e37bfa0136209169da554410c3b539d49c80f8b.
Actions