Project

General

Profile

Bug #321

external-node importer does not overwrite class list

Added by Dis Connect almost 9 years ago. Updated almost 9 years ago.

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

Description

If you are migrating and run the external-node importer, it should overwrite the class list for each host with the new information each time. (Instead, it combines them.)

Starting node info:

--- 
classes: 
  - base
  - class2
  - class3
  - class4
parameters: 
...

Run the import:external_nodes. Foreman shows (correctly) base, class2, class3, class4.
Edit the node in the external tool:
--- 
classes: 
  - base
  - class2
  - class5
parameters: 
...

(Remove class3, class4. Add class5.)
rake import:external_nodes again. Foreman will now show "base, class2, class3, class4, class5" - the removed classes do not go away.

Associated revisions

Revision 727312c3 (diff)
Added by Ohad Levy almost 9 years ago

fixes #321 - external-node importer does not overwrite class list

History

#1 Updated by Ohad Levy almost 9 years ago

  • Target version set to 0.1-6

well.. this was suppose to be a one time operation.... not a continues effort ;)

#2 Updated by Ohad Levy almost 9 years ago

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

#3 Updated by Ohad Levy almost 9 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF