systemctl: let's tweak how we synthesize a cell for activating unit
authorLennart Poettering <lennart@poettering.net>
Wed, 6 May 2020 12:48:54 +0000 (14:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 May 2020 13:40:15 +0000 (15:40 +0200)
commit50098d87fbe677bd43cb7329b2e32b039401f35c
treea7aac0b9f3f85236591dc1347ab315bfbdbdb2b4
parentbc04bb0d29623669eac0b514987128016b0c8b47
systemctl: let's tweak how we synthesize a cell for activating unit

Let's create a string cell for the unit if possible (since there can
only be one unit right now, and the JSON alternative output then
generates a string instead of an array for us), an empty cell if empty.
src/systemctl/systemctl.c