Project

General

Profile

Actions

Bug #14311

closed

hammer-cli defaults add does not work if no defaults file exist.

Added by Shimon Shtein over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

  1. hammer defaults list
    ----------|------
    PARAMETER | VALUE
    ----------|------
  1. hammer defaults providers
    ---------|------------------------------|-------------------------------------------------------------
    PROVIDER | SUPPORTED DEFAULTS | DESCRIPTION
    ---------|------------------------------|-------------------------------------------------------------
    foreman | organization_id, location_id | Use the default organization and/or location from the server
    ---------|------------------------------|-------------------------------------------------------------
  1. hammer defaults add --param-name=organization_id --provider=foreman
    No such file or directory @ rb_sysopen - /root/.hammer/defaults.yml
  1. hammer defaults add --param-name=organization_id --param-value=1
    No such file or directory @ rb_sysopen - /root/.hammer/defaults.yml
  1. 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

  1. ll /root/.hammer/defaults.yml
    rw-r--r-. 1 root root 0 Mar 21 13:32 /root/.hammer/defaults.yml
  1. hammer defaults add --param-name=organization_id --param-value=1
    Error: undefined method `[]' for false:FalseClass
Actions

Also available in: Atom PDF