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
Actions