Skip to content

Commit

Permalink
Don't enable services that will be afterwards disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and matejmatuska committed Jul 10, 2024
1 parent c687341 commit d2ad3d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def process():
msg = 'Attempted to both enable and disable systemd service "{}", service will be disabled.'.format(service)
api.current_logger().warning(msg)

for service in services_to_enable:
for service in services_to_enable - intersection:
try:
systemd.enable_unit(service)
except CalledProcessError:
Expand Down

0 comments on commit d2ad3d6

Please sign in to comment.