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:
parent
0be140389b
commit
62c83a073a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user