Project

General

Profile

Actions

Bug #3269

closed

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

Added by Dominic Cleal over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
Difficulty:
Triaged:
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

Actions #1

Updated by Anonymous over 10 years ago

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

Updated by Greg Sutcliffe over 10 years ago

  • translation missing: en.field_release set to 1
Actions

Also available in: Atom PDF