Fix pep8
Ignore E731 and fix some pep8 errors. Change-Id: Id7dfa9f1fc63b5e196261e4311d2f0c61a5ab9c1
This commit is contained in:
parent
550fde3c91
commit
ad547dccaf
@ -45,7 +45,7 @@ service_opts = [
|
||||
cfg.StrOpt('environment_dir',
|
||||
default='/etc/bilean/environments',
|
||||
help=_('The directory to search for environment files.')),
|
||||
]
|
||||
]
|
||||
|
||||
rpc_opts = [
|
||||
cfg.StrOpt('host',
|
||||
@ -69,7 +69,7 @@ authentication_opts = [
|
||||
help=_('Name of the domain for the service user.')),
|
||||
cfg.StrOpt('service_project_domain', default='Default',
|
||||
help=_('Name of the domain for the service project.')),
|
||||
]
|
||||
]
|
||||
|
||||
clients_group = cfg.OptGroup('clients')
|
||||
clients_opts = [
|
||||
|
@ -145,7 +145,7 @@ def random_name(length=8):
|
||||
|
||||
lead = random.choice(string.ascii_letters)
|
||||
tail = ''.join(random.choice(string.ascii_letters + string.digits)
|
||||
for i in range(length-1))
|
||||
for i in range(length - 1))
|
||||
return lead + tail
|
||||
|
||||
|
||||
|
@ -49,7 +49,7 @@ bilean_task_opts = [
|
||||
cfg.StrOpt('connection',
|
||||
help='The SQLAlchemy connection string used to connect to the '
|
||||
'database')
|
||||
]
|
||||
]
|
||||
|
||||
bilean_task_group = cfg.OptGroup('bilean_task')
|
||||
cfg.CONF.register_group(bilean_task_group)
|
||||
|
@ -160,8 +160,8 @@ class EventDefinition(object):
|
||||
return False
|
||||
|
||||
def match_type(self, event_type):
|
||||
return (self.included_type(event_type)
|
||||
and not self.excluded_type(event_type))
|
||||
return (self.included_type(event_type) and
|
||||
not self.excluded_type(event_type))
|
||||
|
||||
@property
|
||||
def is_catchall(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user