only path taskinfo, scminfo, [srcdir] to plugin

This commit is contained in:
Yuming Zhu 2017-03-20 17:53:06 +08:00 committed by Mike McLean
parent 9bf49841ad
commit 89e82d6020
5 changed files with 45 additions and 63 deletions

View file

@ -229,7 +229,7 @@ class SCM(object):
# should never happen
raise koji.GenericError('Invalid SCM URL: %s' % url)
def contextData(self, keys=None):
def get_info(self, keys=None):
if keys is None:
keys = ["url", "scheme", "user", "host", "path", "query", "revision", "scmtype"]
return dict([(k, vars(self)[k]) for k in keys if vars(self).has_key(k)])