summaryrefslogtreecommitdiffstats
path: root/lib/container/list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-09 00:19:37 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-11 10:39:04 +0000
commit781af2969aa779f3dfdbe66a93f6d0b11476a620 (patch)
treedc147d4e82f46dc7c3cf5253912810ccb1ae087c /lib/container/list
parentAdding trailing line in full format for container list command. (diff)
downloadcompute-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 '')
-rwxr-xr-xlib/container/list8
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
}