Skip to content
Snippets Groups Projects
Commit b05fa872 authored by Erik Reid's avatar Erik Reid
Browse files

modify meta in-place when updating state

parent 909262b4
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ class InventoryTask(Task):
logging.debug("loaded config: %r" % InventoryTask.config)
def update_state(self, **kwargs):
meta = kwargs.get('meta', dict())
meta = kwargs.setdefault('meta', dict())
meta['task'] = self.name
logger.debug(json.dumps(
{'state': kwargs['state'], 'meta': str(meta)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment