diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-09-22 14:55:55 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-09-22 14:55:55 -0400 |
commit | 0c52ea4f8b1392f45ca3c45d9f4a0ca2326e481a (patch) | |
tree | 4b8f5f1c38e349e9ac5d5af5ef02271e61057398 | |
parent | de77931320c274c22b958d8ba333fc8662806b28 (diff) | |
download | vyos-cloud-init-0c52ea4f8b1392f45ca3c45d9f4a0ca2326e481a.tar.gz vyos-cloud-init-0c52ea4f8b1392f45ca3c45d9f4a0ca2326e481a.zip |
make read_seeded return OSError for a file not found
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 6f9b2374..8f50147d 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -202,9 +202,9 @@ def read_seeded(base="", ext="", timeout=5, retries=10, file_retries=0): except urllib2.HTTPError as e: raise_err = e except urllib2.URLError as e: + raise_err = e if isinstance(e.reason,OSError) and e.reason.errno == errno.ENOENT: raise_err = e.reason - raise_err = e if attempt == retries: break |