From 27e72d6b22890ba4a8cbc05c49667cd1cccf1461 Mon Sep 17 00:00:00 2001 From: Simon Peeters Date: Thu, 7 Nov 2013 08:58:22 +0100 Subject: bus: make bus_print_all_properties work for non machinectl cases add a destination parameter and skip properties we can't read --- src/machine/machinectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/machine') 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)); -- cgit v1.2.3-54-g00ecf