Skip to content

Commit

Permalink
lxc-ubuntu-cloud: Never exit 0 when no container is created
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Nov 6, 2015
1 parent bfc1e6d commit 126ab9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/lxc-ubuntu-cloud.in
Expand Up @@ -204,7 +204,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;;
Expand Down Expand Up @@ -297,7 +297,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
Expand Down

0 comments on commit 126ab9f

Please sign in to comment.