Documentation has inadequate information about use of the systemd facts #1619
Unanswered
Routhinator
asked this question in
Q&A
Replies: 1 comment
-
|
Hi there! I think you might be importing the wrong Also to be clear (and I might not understand what data point you want here), using the print(host.get_fact(SystemdStatus, services=["syslog"]))only returns To get the socket I need to run print(host.get_fact(SystemdStatus, services=["syslog.socket"]))Looking at the resulting dict I'm not sure how your print(host.get_fact(SystemdStatus, services=["syslog.socket"])["syslog.socket"])A bit clunky tbh but seems to work 🤷 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot get the systemd facts to work.
The docs seem to indicate that kwargs need to be passed, however any attempt to pass kwargs throws an error:
code:
And without kwargs.. trying to use these facts results in:
code:
output:
Beta Was this translation helpful? Give feedback.
All reactions