diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-12-09 00:19:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-12-11 10:39:04 +0000 |
commit | 781af2969aa779f3dfdbe66a93f6d0b11476a620 (patch) | |
tree | dc147d4e82f46dc7c3cf5253912810ccb1ae087c /lib/container | |
parent | Adding trailing line in full format for container list command. (diff) | |
download | compute-tools-781af2969aa779f3dfdbe66a93f6d0b11476a620.tar.xz compute-tools-781af2969aa779f3dfdbe66a93f6d0b11476a620.zip |
Sorting format code in container list command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'lib/container')
-rwxr-xr-x | lib/container/list | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/container/list b/lib/container/list index 9934890..3dd1ecf 100755 --- a/lib/container/list +++ b/lib/container/list @@ -100,10 +100,6 @@ HOST="${HOST:-$(hostname -f)}" List () { case "${FORMAT}" in - short) - printf "${CONTAINER}\n" - ;; - full) FIRST_LINE="true" @@ -121,6 +117,10 @@ List () esac done ;; + + short) + printf "${CONTAINER}\n" + ;; esac } |