Bug #321

external-node importer does not overwrite class list

Added by Dis Connect over 1 year ago. Updated over 1 year ago.

Status:Closed Start:06/09/2010
Priority:Normal Due date:
Assigned to:Ohad Levy % Done:

100%

Category:Importers
Target version:0.1-6
Backlog: Difficulity:
Votes: 0

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 727312c3b6ea6693fafe1a2162753a04183ccd44
Added by Ohad Levy over 1 year ago

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

History

Updated by Ohad Levy over 1 year ago

  • Target version set to 0.1-6

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

Updated by Ohad Levy over 1 year ago

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

Updated by Ohad Levy over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF