Skip to content

Commit

Permalink
machinectl: handle EOPNOTSUPP from print_addresses (#4979)
Browse files Browse the repository at this point in the history
Print addresses returns EOPNOTSUPP, not ENOSYS, when trying to print
addresses for non-container machines.
  • Loading branch information
gclawes authored and poettering committed Dec 25, 2016
1 parent 2dcf2a1 commit 3a0a40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machine/machinectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 3a0a40d

Please sign in to comment.