From 15f9ebe6b19836efec0bec44b0826fcfcae230c5 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 31 Jan 2011 16:48:04 -0500 Subject: make write_to_cache raise errors if it fails rather than surpressing --- cloudinit/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3