Bug #3269
rake puppet:import:hosts_and_facts fails with wrong number of arguments (1 for 2..3)
Description
Since the fact import API was refactored for 1.3, the corresponding rake task also fails:
$ rake puppet:import:hosts_and_facts dir=/home/dcleal/code/foreman/local/reports/
Importing from /home/dcleal/code/foreman/local/reports/
Importing rhel6b.fm.example.net
rake aborted!
wrong number of arguments (1 for 2..3)
/home/dcleal/code/foreman/foreman/app/models/host/managed.rb:356:in `importHostAndFacts'
/home/dcleal/code/foreman/foreman/app/models/host.rb:16:in `method_missing'
/home/dcleal/code/foreman/foreman/lib/tasks/puppet.rake:53:in `block (4 levels) in <top (required)>'
/home/dcleal/code/foreman/foreman/lib/tasks/puppet.rake:50:in `each'
/home/dcleal/code/foreman/foreman/lib/tasks/puppet.rake:50:in `block (3 levels) in <top (required)>'
/home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/bin/ruby_noexec_wrapper:14:in `eval'
/home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/bin/ruby_noexec_wrapper:14:in `<main>'
Associated revisions
fixes #3269 - fact import rake task fails with arity error
(cherry picked from commit 956e2ed4b5f45a89786d4702d33680b66474f159)
History
#1
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 956e2ed4b5f45a89786d4702d33680b66474f159.
#2
Updated by Greg Sutcliffe over 9 years ago
- Legacy Backlogs Release (now unused) set to 1
fixes #3269 - fact import rake task fails with arity error