Skip to content

Commit

Permalink
Fix: (reported by ddurieux) missing imported_from property setting fo…
Browse files Browse the repository at this point in the history
…r arbiter modules. Fix #1595
  • Loading branch information
naparuba committed Apr 27, 2015
1 parent 8133b37 commit 4826837
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shinken/daemons/arbiterdaemon.py
Expand Up @@ -361,6 +361,10 @@ def load_config_file(self):
# test if raw_objects[k] are already set - if not, add empty array
if k not in raw_objects:
raw_objects[k] = []
# put the imported_from property if the module is not already setting
# it so we know where does this object came from
if 'imported_from' not in x:
x['imported_from'] = 'module:%s' % inst.get_name()
# now append the object
raw_objects[k].append(x)
logger.debug("Added %i objects to %s from module %s",
Expand Down

0 comments on commit 4826837

Please sign in to comment.