Hammer appears to ignore config file

Hello,

The following works:

hammer -c ~/.hammer/cli_config.yml host list

The following does not work:

hammer host list

This is odd, because according to the docs hammer should read the
configuration in ~/.hammer/cli_config.yml even when you don't explicitly
tell it to.
(The config file contains foreman host, username and password)

So what did I do wrong?

Krist

The config file location was only recently changed to ~/.hammer from
~/.foreman, so it may depend on your version. .hammer is used from
0.1.0 upwards (as shipped in Foreman 1.5 or on rubygems).

··· On 28/04/14 12:31, Krist van Besien wrote: > Hello, > > The following works: > > # hammer -c ~/.hammer/cli_config.yml host list > > The following does not work: > > # hammer host list > > This is odd, because according to the docs hammer should read the > configuration in ~/.hammer/cli_config.yml even when you don't > explicitly tell it to. > (The config file contains foreman host, username and password) > > So what did I do wrong?


Dominic Cleal
Red Hat Engineering