From 3a0a40d1667e53b623e891527871e9f3ee6cb7b4 Mon Sep 17 00:00:00 2001 From: Graeme Lawes Date: Sun, 25 Dec 2016 06:14:41 -0500 Subject: machinectl: handle EOPNOTSUPP from print_addresses (#4979) Print addresses returns EOPNOTSUPP, not ENOSYS, when trying to print addresses for non-container machines. --- src/machine/machinectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 36c2607ba9..f85ef5b6ec 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -331,7 +331,7 @@ static int list_machines(int argc, char *argv[], void *userdata) { (int) max_version_id, strdash_if_empty(machines[j].version_id)); r = print_addresses(bus, machines[j].name, 0, "", prefix, arg_addrs); - if (r == -ENOSYS) + if (r == -EOPNOTSUPP) printf("-\n"); } -- cgit v1.2.3-54-g00ecf