if spec_section == 'hosts':
mk_spec = lambda: ServiceSpec('mgr', placement=PlacementSpec(
- hosts=explicit,
- count=count,
- ))
+ hosts=explicit,
+ count=count,
+ ))
elif spec_section == 'label':
mk_spec = lambda: ServiceSpec('mgr', placement=PlacementSpec(
label='mylabel',
'123': '*',
}[explicit_key]
mk_spec = lambda: ServiceSpec('mgr', placement=PlacementSpec(
- host_pattern=pattern,
- count=count,
- ))
+ host_pattern=pattern,
+ count=count,
+ ))
else:
assert False
[flake8]
max-line-length = 100
ignore =
- E126,
E128,
E225,
E226,