diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-12 02:07:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-12 07:47:20 +0000 |
commit | 2bead10d5ae5d4028a6d79c36ba54d6a79a422c7 (patch) | |
tree | f5320ab719111ed9bb64b6ff743b7127b44d5058 /lib/container/remove | |
parent | Using fallback to ifupdown addresses in container list command for container ... (diff) | |
download | compute-tools-2bead10d5ae5d4028a6d79c36ba54d6a79a422c7.tar.xz compute-tools-2bead10d5ae5d4028a6d79c36ba54d6a79a422c7.zip |
Fail to find container in remove command only when both the rootfs and the config are gone already.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | lib/container/remove | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/remove b/lib/container/remove index 843e9c3..04e7d30 100755 --- a/lib/container/remove +++ b/lib/container/remove @@ -82,7 +82,7 @@ then Usage fi -if [ ! -e "${MACHINES}/${NAME}" ] +if [ ! -e "${MACHINES}/${NAME}" ] && [ ! -e "${CONFIG}/${NAME}.conf" ] then echo "'${NAME}': no such container" >&2 exit 1 |