Zbigniew Jędrzejewski-Szmek f4a676
From fb724063b60139468caceec06b946b82235578bc Mon Sep 17 00:00:00 2001
Michal Sekletar f5f073
From: Michal Sekletar <msekletar@users.noreply.github.com>
Michal Sekletar f5f073
Date: Tue, 14 Mar 2017 22:38:19 +0100
Michal Sekletar f5f073
Subject: [PATCH] machinectl: don't return 1 in case we couldn't figure out
Michal Sekletar f5f073
 container IP addresses (#5587)
Michal Sekletar f5f073
Michal Sekletar f5f073
This is in spirit very similar to commit
Michal Sekletar f5f073
4b2419165ce409ee55ce96a926302f89685f2293.
Michal Sekletar f5f073
Michal Sekletar f5f073
Fixes: #5581
Michal Sekletar f5f073
(cherry picked from commit 3c302cddfb2e921578d1238ebcc0cb5ff34fbebe)
Michal Sekletar f5f073
---
Michal Sekletar f5f073
 src/machine/machinectl.c | 1 +
Michal Sekletar f5f073
 1 file changed, 1 insertion(+)
Michal Sekletar f5f073
Michal Sekletar f5f073
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
Zbigniew Jędrzejewski-Szmek f4a676
index 28384286fb..3031ed5def 100644
Michal Sekletar f5f073
--- a/src/machine/machinectl.c
Michal Sekletar f5f073
+++ b/src/machine/machinectl.c
Michal Sekletar f5f073
@@ -340,6 +340,7 @@ static int list_machines(int argc, char *argv[], void *userdata) {
Michal Sekletar f5f073
                         printf("No machines.\n");
Michal Sekletar f5f073
         }
Michal Sekletar f5f073
 
Michal Sekletar f5f073
+        r = 0;
Michal Sekletar f5f073
 out:
Michal Sekletar f5f073
         clean_machine_info(machines, n_machines);
Michal Sekletar f5f073
         return r;