Project

General

Profile

Bug #3269

rake puppet:import:hosts_and_facts fails with wrong number of arguments (1 for 2..3)

Added by Dominic Cleal almost 6 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Facts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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>'

https://github.com/theforeman/foreman/pull/941

Associated revisions

Revision 956e2ed4 (diff)
Added by Dmitri Dolguikh almost 6 years ago

fixes #3269 - fact import rake task fails with arity error

Revision 69292888 (diff)
Added by Dmitri Dolguikh over 5 years ago

fixes #3269 - fact import rake task fails with arity error

(cherry picked from commit 956e2ed4b5f45a89786d4702d33680b66474f159)

History

#1 Updated by Anonymous almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#2 Updated by Greg Sutcliffe almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 1

Also available in: Atom PDF