summaryrefslogtreecommitdiff
path: root/cloudinit/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-31 16:48:04 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-31 16:48:04 -0500
commit15f9ebe6b19836efec0bec44b0826fcfcae230c5 (patch)
treec36dded8e50d00f493d6b4b17d016668ba20ad21 /cloudinit/__init__.py
parent85444c68c8728d4324b71218d15d4f04ecdb4fbd (diff)
downloadvyos-cloud-init-15f9ebe6b19836efec0bec44b0826fcfcae230c5.tar.gz
vyos-cloud-init-15f9ebe6b19836efec0bec44b0826fcfcae230c5.zip
make write_to_cache raise errors if it fails rather than surpressing
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r--cloudinit/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index 47e4e10a..9384bf11 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -173,9 +173,8 @@ class CloudInit:
data = cPickle.dump(self.datasource,f)
f.close()
os.chmod(cache,0400)
- return True
except:
- return False
+ raise
def get_data_source(self):
if self.datasource is not None: return True