1
0

pass-all-systemd-list-units.patch 937 B

12345678910111213141516171819202122232425262728
  1. From 968b26f45351d790a9fa2afd9bbd6c5bb31f13d5 Mon Sep 17 00:00:00 2001
  2. From: Tim Serong <tserong@suse.com>
  3. Date: Mon, 7 Jul 2014 21:14:26 +1000
  4. Subject: [PATCH] Pass --all when invoking `systemctl list-units`
  5. `systemctl list-units` without --all won't list services that aren't
  6. actually running. See https://github.com/saltstack/salt/issues/13788
  7. for some further discussion.
  8. ---
  9. salt/modules/systemd.py | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/salt/modules/systemd.py b/salt/modules/systemd.py
  12. index ca93986..036adb4 100644
  13. --- a/salt/modules/systemd.py
  14. +++ b/salt/modules/systemd.py
  15. @@ -82,7 +82,7 @@ def _get_all_units():
  16. r')\s+loaded\s+(?P<active>[^\s]+)')
  17. out = __salt__['cmd.run_stdout'](
  18. - 'systemctl --full --no-legend --no-pager list-units | col -b'
  19. + 'systemctl --all --full --no-legend --no-pager list-units | col -b'
  20. )
  21. ret = {}
  22. --
  23. 1.9.3