bundles: code style improvements
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-12 20:37:36 +01:00
parent 2af911c29f
commit f52df58517
Signed by: kunsi
GPG key ID: 12E3D2136B818350
24 changed files with 80 additions and 95 deletions

View file

@ -17,11 +17,11 @@ if node.has_bundle('pppd'):
}
# Will be started and stopped by pppd.
should_be_running = None
should_be_enabled = False
SHOULD_BE_RUNNING = None
SHOULD_BE_ENABLED = False
else:
should_be_running = True
should_be_enabled = True
SHOULD_BE_RUNNING = True
SHOULD_BE_ENABLED = True
files['/etc/wide-dhcpv6/dhcp6c.conf'] = {
'content_type': 'mako',
@ -48,8 +48,8 @@ files['/etc/systemd/system/wide-dhcpv6-client.service'] = {
svc_systemd = {
'wide-dhcpv6-client': {
'running': should_be_running,
'enabled': should_be_enabled,
'running': SHOULD_BE_RUNNING,
'enabled': SHOULD_BE_ENABLED,
'needs': {
'file:/etc/systemd/system/wide-dhcpv6-client.service',
'file:/etc/wide-dhcpv6/dhcp6c.conf',