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:
parent
8e515c0be7
commit
2b44df2294
1 changed files with 38 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue