diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-01-31 16:48:04 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-01-31 16:48:04 -0500 |
commit | 15f9ebe6b19836efec0bec44b0826fcfcae230c5 (patch) | |
tree | c36dded8e50d00f493d6b4b17d016668ba20ad21 | |
parent | 85444c68c8728d4324b71218d15d4f04ecdb4fbd (diff) | |
download | vyos-cloud-init-15f9ebe6b19836efec0bec44b0826fcfcae230c5.tar.gz vyos-cloud-init-15f9ebe6b19836efec0bec44b0826fcfcae230c5.zip |
make write_to_cache raise errors if it fails rather than surpressing
-rw-r--r-- | cloudinit/__init__.py | 3 |
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 |