diff options
author | Franck Bui <fbui@suse.com> | 2017-02-02 19:29:44 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-02 13:29:44 -0500 |
commit | f1669917f583279ac7348283206612462b178597 (patch) | |
tree | 5d36588cfa4963e7efb850c8711ae8e6cca9bfee /src/basic/gunicode.h | |
parent | 486b3d08dbf6c6b0b20e2960990f864d5d95fd37 (diff) |
systemctl: 'show' don't exit with a failure status if the requested property does not exist (#5201)
"systemctl show -pUnknown <service>" used to exit with '0' even if the property
passed by '-p' doesn't exist. But since commit 3dced37b7c2c9a5c733817 (v231+),
it exits with a failure status.
"systemctl show" is supposed to be scriptable and therefore its behavior is
supposed to be stable.
This patch restores the old behavior on which a couple of scripts already rely
now.
Also when the requested property doesn't exist, it always logs it at the debug
level since this part of the code is only used by the show command.
Fixes: #5118
Diffstat (limited to 'src/basic/gunicode.h')
0 files changed, 0 insertions, 0 deletions