assert False
hosts = [
- HostSpec(h, labels=['mylabel']) if h in explicit else HostSpec(h)
- for h in hosts
- ]
+ HostSpec(h, labels=['mylabel']) if h in explicit else HostSpec(h)
+ for h in hosts
+ ]
return mk_spec, hosts
PlacementSpec(count=5),
'host1 host2 host3 host4'.split(),
[
- DaemonDescription('mon', 'a', 'host1'),
- DaemonDescription('mon', 'b', 'host2'),
+ DaemonDescription('mon', 'a', 'host1'),
+ DaemonDescription('mon', 'b', 'host2'),
],
3
),
PlacementSpec(hosts='host1 host2 host3 host4'.split()),
'host1 host2 host3 host4 host5'.split(),
[
- DaemonDescription('mon', 'a', 'host1'),
- DaemonDescription('mon', 'b', 'host2'),
- DaemonDescription('mon', 'c', 'host3'),
+ DaemonDescription('mon', 'a', 'host1'),
+ DaemonDescription('mon', 'b', 'host2'),
+ DaemonDescription('mon', 'c', 'host3'),
],
3
),