Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def validate_config(cls, service_config, target):
for k in ('login', 'password', 'hostname'):
if not service_config.has(k):
die("[%s] has no 'mplan.%s'" % (target, k))
IssueService.validate_config(service_config, target)
def validate_config(cls, service_config, target):
for k in ('login', 'password', 'host'):
if k not in service_config:
die("[%s] has no 'youtrack.%s'" % (target, k))
IssueService.validate_config(service_config, target)
def validate_config(cls, service_config, target):
for k in ('login', 'password', 'hostname'):
if not service_config.has(k):
die("[%s] has no 'teamlab.%s'" % (target, k))
IssueService.validate_config(service_config, target)
def validate_config(cls, service_config, target):
if ('udd' in service_config and
asbool(service_config.get('udd')) and
'email' not in service_config):
die("[%s] has no 'bts.email' but UDD search was requested" %
(target,))
if 'packages' not in service_config and 'email' not in service_config:
die("[%s] has neither 'bts.email' or 'bts.packages'" % (target,))
if ('udd_ignore_sponsor' in service_config and
(not asbool(service_config.get('udd')))):
die("[%s] defines settings for UDD search without enabling"
" UDD search" % (target,))
IssueService.validate_config(service_config, target)
def validate_config(cls, service_config, target):
for option in ('username', 'password', 'base_uri'):
if option not in service_config:
die("[%s] has no 'jira.%s'" % (target, option))
IssueService.validate_config(service_config, target)
def validate_config(cls, service_config, target):
for option in ('auth_token', 'base_uri'):
if option not in service_config:
die("[%s] has no 'taiga.%s'" % (target, option))
IssueService.validate_config(service_config, target)
def validate_config(cls, config, target):
if not config.has_option(target, 'username'):
die("[%s] has no 'username'" % target)
if config.has_option(target, 'only_if_assigned'):
die("[%s] - github does not currently support issue owners." %
target)
IssueService.validate_config(config, target)
def validate_config(cls, service_config, target):
for option in ('username', 'password', 'base_uri'):
if option not in service_config:
die("[%s] has no 'gerrit.%s'" % (target, option))
IssueService.validate_config(service_config, target)