[lxc-devel] [PATCH] lxc-ubuntu-cloud: Never exit 0 when no container is created
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Nov 5 18:43:49 UTC 2015
Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> templates/lxc-ubuntu-cloud.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/templates/lxc-ubuntu-cloud.in b/templates/lxc-ubuntu-cloud.in
> index 5bdd758..e508408 100644
> --- a/templates/lxc-ubuntu-cloud.in
> +++ b/templates/lxc-ubuntu-cloud.in
> @@ -200,7 +200,7 @@ cloneargs=()
> while true
> do
> case "$1" in
> - -h|--help) usage $0 && exit 0;;
> + -h|--help) usage $0 && exit 1;;
> -p|--path) path=$2; shift 2;;
> -n|--name) name=$2; shift 2;;
> -F|--flush-cache) flushcache=1; shift 1;;
> @@ -295,7 +295,7 @@ else
> if ! url1=`ubuntu-cloudimg-query $release $stream $arch --format "%{url}\n"`; then
> echo "There is no download available for release=$release, stream=$stream, arch=$arch"
> [ "$stream" = "daily" ] || echo "You may try with '--stream=daily'"
> - exit
> + exit 1
> fi
> url2=`echo $url1 | sed -e 's/.tar.gz/-root\0/' -e 's/.tar.gz/.tar.xz/'`
> fi
> --
> 1.9.1
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list