diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-19 14:17:43 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-19 14:17:43 -0700 |
| commit | 35dc27bbcb3a29ae662a0f8ccfed7a0f76a49c13 (patch) | |
| tree | 885bdfb865ccdb1ca3d4dea0ffaea8b8dcfe8bf6 | |
| parent | a232ba0fda12a98e9da4345a6911a86b68f91826 (diff) | |
Ask curl to set exit code if resource was not found
| -rw-r--r-- | nova/compute/node.py | 2 |
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): |
