Project

General

Profile

Bug #26910

foreman-rake puppet:import:puppet_classes problem

Added by Sergey Smirnov 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Rake tasks
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

For example:
foreman-rake puppet:import:puppet_classes[true,master]
From: /usr/share/foreman/lib/tasks/puppet.rake @ line 89 :

84:           end
85: exit 1
86: end
87:
88: require "pry"
=> 89: binding.pry
90:
91: puts "Changes: #{changes}"
92: if changes["new"].empty? && changes["obsolete"].empty?
93: puts "No changes detected" unless args.batch
94: puts "debug"

Changes: {"new"=>{}, "obsolete"=>{}, "updated"=>{<any_data>}, "ignored"=>{}}

require change line 92: add changes["updated"].empty?
We are have problem with import new class parameters from puppet manifests, without this fix.

Associated revisions

Revision 02d912e5 (diff)
Added by Smirnov Sergey 6 months ago

Fixes #26910 - correction of condition

History

#2 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6807 added

#3 Updated by Ondřej Pražák 6 months ago

  • Status changed from Ready For Testing to Closed
  • Fixed in Releases 1.23.0 added

#4 Updated by Amit Upadhye 5 months ago

  • Category set to Rake tasks

Also available in: Atom PDF