Had any body previously faced this issue?
I dont seem to quite know whats going on here ,
I have update hammer cli form 0.14 to new 0.2.0 , hammer list host command
works while , but a simple hammer --help command seems to be broken
Below is the output of hammer -d --help
hammer -d --help
[ INFO 2015-06-18 16:59:50 Init] Initialization of Hammer CLI (0.2.0) has
started…
[DEBUG 2015-06-18 16:59:50 Init] Running at ruby 1.8.7-p352
[ INFO 2015-06-18 16:59:50 Init] Configuration from the file
/etc/hammer/cli_config.yml has been loaded
[ INFO 2015-06-18 16:59:50 Init] Configuration from the file
/etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2015-06-18 16:59:50 Init] Configuration from the file
/nfshome/user/.hammer/cli_config.yml has been loaded
[ WARN 2015-06-18 16:59:50 Modules] Legacy configuration of modules
detected. Check section about configuration in user manual
[DEBUG 2015-06-18 16:59:50 Connection] Registered: foreman
[DEBUG 2015-06-18 16:59:50 API] Global headers: {
:accept => "application/json;version=2",
:content_type => "application/json",
"Accept-Language" => "en"
}
[ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
(0.2.0) loaded
[ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
(0.2.0) loaded
[DEBUG 2015-06-18 16:59:51 Init] Using locale 'en'
[DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain 'hammer-cli'
loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/locale'
[DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain
'hammer-cli-foreman' loaded from
'/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.2.0/locale'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/…/abstract.rb:96:in
help': wrong number of arguments (2 for 1) (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:96:in
help'
from
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:75:in
handle_help_wanted' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
send'
from
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
handle_exception' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:191:in
handle_exception'
from
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/…/abstract.rb:27:in
run' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in
run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/bin/hammer:108
from /usr/bin/hammer:19:in `load'
from /usr/bin/hammer:19
it fails when ever try to do --help in any of the sub command too , ie like
hammer host create --help etc.
Any help will be much appreciated.
Thanks.
Hi,
it's probably old version of Clamp you use. I just noticed that we
didn't put any restriction in hammer's gemspec. I'll fix that.
If you use clamp >= 0.6.2 you should be good (the latest is 1.0.0).
Tomas
···
On 06/18/2015 05:09 PM, sudhir pandey wrote:
> Had any body previously faced this issue?
> I dont seem to quite know whats going on here ,
> I have update hammer cli form 0.14 to new 0.2.0 , *hammer list host
> command *works while , but a simple*hammer --help* command seems to be
> broken
>
> Below is the output of hammer -d --help
>
> hammer -d --help
> [ INFO 2015-06-18 16:59:50 Init] Initialization of Hammer CLI (0.2.0)
> has started...
> [DEBUG 2015-06-18 16:59:50 Init] Running at ruby 1.8.7-p352
> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
> /etc/hammer/cli_config.yml has been loaded
> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
> /etc/hammer/cli.modules.d/foreman.yml has been loaded
> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
> /nfshome/user/.hammer/cli_config.yml has been loaded
> [ WARN 2015-06-18 16:59:50 Modules] Legacy configuration of modules
> detected. Check section about configuration in user manual
> [DEBUG 2015-06-18 16:59:50 Connection] Registered: foreman
> [DEBUG 2015-06-18 16:59:50 API] Global headers: {
> :accept => "application/json;version=2",
> :content_type => "application/json",
> "Accept-Language" => "en"
> }
> [ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
> (0.2.0) loaded
> [ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
> (0.2.0) loaded
> [DEBUG 2015-06-18 16:59:51 Init] Using locale 'en'
> [DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain
> 'hammer-cli' loaded from
> '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/locale'
> [DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain
> 'hammer-cli-foreman' loaded from
> '/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.2.0/locale'
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:96:in
> `help': wrong number of arguments (2 for 1) (ArgumentError)
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:96:in
> `help'
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:75:in
> `handle_help_wanted'
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
> `send'
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
> `handle_exception'
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:191:in
> `handle_exception'
> from
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:27:in
> `run'
> from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in
> `run'
> from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/bin/hammer:108
> from /usr/bin/hammer:19:in `load'
> from /usr/bin/hammer:19
>
> it fails when ever try to do --help in any of the sub command too , ie
> like hammer host create --help etc.
>
> Any help will be much appreciated.
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to foreman-users+unsubscribe@googlegroups.com
> .
> To post to this group, send email to foreman-users@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
1On 06/22/2015 11:14 AM, Tomas Strachota wrote:
> Hi,
> it's probably old version of Clamp you use. I just noticed that we
> didn't put any restriction in hammer's gemspec. I'll fix that.
Update: The problem is actually already fixed in master [1].
[1]
https://github.com/theforeman/hammer-cli/commit/ebbdf836e7f5488e7448fab40663b7d69f79524f
···
>
> If you use clamp >= 0.6.2 you should be good (the latest is 1.0.0).
>
> Tomas
>
> On 06/18/2015 05:09 PM, sudhir pandey wrote:
>> Had any body previously faced this issue?
>> I dont seem to quite know whats going on here ,
>> I have update hammer cli form 0.14 to new 0.2.0 , *hammer list host
>> command *works while , but a simple*hammer --help* command seems to be
>> broken
>>
>> Below is the output of hammer -d --help
>>
>> hammer -d --help
>> [ INFO 2015-06-18 16:59:50 Init] Initialization of Hammer CLI (0.2.0)
>> has started...
>> [DEBUG 2015-06-18 16:59:50 Init] Running at ruby 1.8.7-p352
>> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
>> /etc/hammer/cli_config.yml has been loaded
>> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
>> /etc/hammer/cli.modules.d/foreman.yml has been loaded
>> [ INFO 2015-06-18 16:59:50 Init] Configuration from the file
>> /nfshome/user/.hammer/cli_config.yml has been loaded
>> [ WARN 2015-06-18 16:59:50 Modules] Legacy configuration of modules
>> detected. Check section about configuration in user manual
>> [DEBUG 2015-06-18 16:59:50 Connection] Registered: foreman
>> [DEBUG 2015-06-18 16:59:50 API] Global headers: {
>> :accept => "application/json;version=2",
>> :content_type => "application/json",
>> "Accept-Language" => "en"
>> }
>> [ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
>> (0.2.0) loaded
>> [ INFO 2015-06-18 16:59:51 Modules] Extension module hammer_cli_foreman
>> (0.2.0) loaded
>> [DEBUG 2015-06-18 16:59:51 Init] Using locale 'en'
>> [DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain
>> 'hammer-cli' loaded from
>> '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/locale'
>> [DEBUG 2015-06-18 16:59:51 Init] 'mo' files for locale domain
>> 'hammer-cli-foreman' loaded from
>> '/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.2.0/locale'
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:96:in
>>
>> `help': wrong number of arguments (2 for 1) (ArgumentError)
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:96:in
>>
>> `help'
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:75:in
>>
>> `handle_help_wanted'
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
>>
>> `send'
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/exception_handler.rb:28:in
>>
>> `handle_exception'
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:191:in
>>
>> `handle_exception'
>> from
>> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/lib/hammer_cli/./apipie/../abstract.rb:27:in
>>
>> `run'
>> from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.1/lib/clamp/command.rb:125:in
>> `run'
>> from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.2.0/bin/hammer:108
>> from /usr/bin/hammer:19:in `load'
>> from /usr/bin/hammer:19
>>
>> it fails when ever try to do --help in any of the sub command too , ie
>> like hammer host create --help etc.
>>
>> Any help will be much appreciated.
>> Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to foreman-users+unsubscribe@googlegroups.com
>> .
>> To post to this group, send email to foreman-users@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/foreman-users.
>> For more options, visit https://groups.google.com/d/optout.
>