[fix] Use a copy of extra_args to prevent to break EVERYTHING in the api

This commit is contained in:
Jérôme Lebleu 2014-06-07 14:12:04 +02:00
parent dc3657fcae
commit 5d12977f10

View file

@ -264,7 +264,7 @@ class ExtraArgumentParser(object):
- args -- A dict of argument name associated to their value
"""
extra_args = self._extra_params.get(GLOBAL_ARGUMENT, {})
extra_args = dict(self._extra_params.get(GLOBAL_ARGUMENT, {}))
extra_args.update(self._extra_params.get(tid, {}))
# Iterate over action arguments with extra parameters