Pass kwargs to the plugin getter

Although the getter and the load_from_argparse_arguments methods accept
kwargs, those were not passed from the load method to the inner
plugin.load_from_options_getter call.

Change-Id: I1af353bf3eab88ebc148b606f683c114819e8330
Closes-Bug: 1697479
This commit is contained in:
Alvaro Lopez Garcia 2017-06-12 17:04:42 +02:00
parent 0be140389b
commit 62c83a073a
1 changed files with 1 additions and 1 deletions

View File

@ -102,4 +102,4 @@ def load_from_argparse_arguments(namespace, **kwargs):
def _getter(opt):
return getattr(namespace, 'os_%s' % opt.dest)
return plugin.load_from_options_getter(_getter)
return plugin.load_from_options_getter(_getter, **kwargs)