jp (merge-request,common): fixed URIFinder when metadata are not needed:

new "meta_map" attribute which allows to select destination argument name, or to discard unused metadata.
This commit is contained in:
Goffi 2018-04-02 08:23:22 +02:00
commit 2b44df2294

View file

@ -121,7 +121,7 @@ class Get(base.CommandBase):
exit_code=C.EXIT_BRIDGE_ERRBACK))
def start(self):
common.URIFinder(self, os.getcwd(), 'merge requests', self.getRequests)
common.URIFinder(self, os.getcwd(), 'merge requests', self.getRequests, meta_map={})
class Import(base.CommandBase):
@ -155,7 +155,7 @@ class Import(base.CommandBase):
def start(self):
self.repository = os.path.expanduser(os.path.abspath(self.args.repository))
common.URIFinder(self, self.repository, 'merge requests', self.importRequest)
common.URIFinder(self, self.repository, 'merge requests', self.importRequest, meta_map={})
class MergeRequest(base.CommandBase):