summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2010-07-19 14:17:43 -0700
committerJustin Santa Barbara <justin@fathomdb.com>2010-07-19 14:17:43 -0700
commit35dc27bbcb3a29ae662a0f8ccfed7a0f76a49c13 (patch)
tree885bdfb865ccdb1ca3d4dea0ffaea8b8dcfe8bf6 /nova
parenta232ba0fda12a98e9da4345a6911a86b68f91826 (diff)
Ask curl to set exit code if resource was not found
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/node.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/node.py b/nova/compute/node.py
index d681ec661..8f829995b 100644
--- a/nova/compute/node.py
+++ b/nova/compute/node.py
@@ -450,7 +450,7 @@ class Instance(object):
def _fetch_s3_image(self, image, path):
url = _image_url('%s/image' % image)
- d = self._pool.simpleExecute('curl --silent %s -o %s' % (url, path))
+ d = self._pool.simpleExecute('curl --silent --fail %s -o %s' % (url, path))
return d
def _fetch_local_image(self, image, path):