summaryrefslogtreecommitdiff
path: root/src/machine/machinectl.c
diff options
context:
space:
mode:
authorSimon Peeters <peeters.simon@gmail.com>2013-11-07 08:58:22 +0100
committerKay Sievers <kay@vrfy.org>2013-11-07 14:18:35 +0100
commit27e72d6b22890ba4a8cbc05c49667cd1cccf1461 (patch)
treed27783aebfae0c243fead854205aaae3cefa3537 /src/machine/machinectl.c
parent8be28fb1e0aa57b2a6ba7736440c9bba54cb86d1 (diff)
bus: make bus_print_all_properties work for non machinectl cases
add a destination parameter and skip properties we can't read
Diffstat (limited to 'src/machine/machinectl.c')
-rw-r--r--src/machine/machinectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index 6234f6add2..aa2b0986ed 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -284,7 +284,7 @@ static int show_properties(sd_bus *bus, const char *path, bool *new_line) {
*new_line = true;
- r = bus_print_all_properties(bus, path, arg_property, arg_all);
+ r = bus_print_all_properties(bus, "org.freedesktop.machine1", path, arg_property, arg_all);
if (r < 0)
log_error("Could not get properties: %s", strerror(-r));