1
0
Fork 0

tuned-adm: fixed detection of no_daemon mode

In no_daemon mode it doesn't try to query DBus, so it doesn't
output DBus error.

Resolves: rhbz#1351536

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2016-07-14 17:39:29 +02:00
parent 209bd3291c
commit b70a93dd8a

View file

@ -80,7 +80,7 @@ if __name__ == "__main__":
action_name = options.pop("action")
result = False
if config.get(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON):
if config.get_bool(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON):
dbus = True
else:
dbus = False