machinectl: handle EOPNOTSUPP from print_addresses (#4979)
Print addresses returns EOPNOTSUPP, not ENOSYS, when trying to print addresses for non-container machines.
This commit is contained in:
committed by
Lennart Poettering
parent
2dcf2a1724
commit
3a0a40d166
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user