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 over 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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 over 9 years ago

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

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

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

#2 Updated by Greg Sutcliffe over 9 years ago

  • Legacy Backlogs Release (now unused) set to 1

Also available in: Atom PDF