Skip to content

Commit

Permalink
Merge pull request #183 from VinceMacBuche/bug_6433/write_technique_f…
Browse files Browse the repository at this point in the history
…unction_does_not_work_with_new_data_model

Fixes #6433: write technique function does not work with new data model
  • Loading branch information
fanf committed Mar 24, 2015
2 parents a43177f + c6b5de1 commit 3c6c0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ncf_rudder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

def write_all_techniques_for_rudder(root_path):
write_category_xml(root_path)
techniques = ncf.get_all_techniques_metadata(alt_path='/var/rudder/configuration-repository/ncf')
techniques = ncf.get_all_techniques_metadata(alt_path='/var/rudder/configuration-repository/ncf')['data']
ret = 0
for technique, metadata in techniques.iteritems():
try:
Expand All @@ -36,7 +36,7 @@ def write_all_techniques_for_rudder(root_path):

def write_one_technique_for_rudder(destination_path, bundle_name):
write_category_xml(destination_path)
techniques = ncf.get_all_techniques_metadata(alt_path='/var/rudder/configuration-repository/ncf')
techniques = ncf.get_all_techniques_metadata(alt_path='/var/rudder/configuration-repository/ncf')['data']
if bundle_name in techniques.keys():
try:
metadata = techniques[bundle_name]
Expand Down

0 comments on commit 3c6c0c4

Please sign in to comment.