systemctl: show: use EnvironmentFiles= instead of EnvironmentFile=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 Feb 2018 10:39:30 +0000 (19:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Feb 2018 06:28:02 +0000 (15:28 +0900)
EnvironmentFile= is used in the unit file, but in the dbus,
the related field name is EnvironmentFiles=.
As the other variables, let's use the field name instead of the name
used in the unit file setting.

src/systemctl/systemctl.c

index a9bcc49..99ad2fc 100644 (file)
@@ -4870,7 +4870,7 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte
                                 return bus_log_parse_error(r);
 
                         while ((r = sd_bus_message_read(m, "(sb)", &path, &ignore)) > 0)
-                                print_prop("EnvironmentFile", "%s (ignore_errors=%s)", path, yes_no(ignore));
+                                print_prop(name, "%s (ignore_errors=%s)", path, yes_no(ignore));
 
                         if (r < 0)
                                 return bus_log_parse_error(r);