networkctl: make enslaved operstate green
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Feb 2019 18:49:12 +0000 (03:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 09:04:18 +0000 (18:04 +0900)
src/network/networkctl.c

index 20edac4..2803f52 100644 (file)
@@ -65,7 +65,7 @@ static void operational_state_to_color(const char *state, const char **on, const
         assert(on);
         assert(off);
 
-        if (streq_ptr(state, "routable")) {
+        if (STRPTR_IN_SET(state, "routable", "enslaved")) {
                 *on = ansi_highlight_green();
                 *off = ansi_normal();
         } else if (streq_ptr(state, "degraded")) {