diff options
author | Joshua Harlow <harlowja@gmail.com> | 2016-05-24 12:50:31 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2016-05-24 12:50:31 -0700 |
commit | ef47b4f4c14ffe1337508f85f365b338a048a5a1 (patch) | |
tree | e67b7ebd1ad83f98d6e52383302fd1a606d0a2e7 /cloudinit/net/__init__.py | |
parent | a023c0dc9c8b83a6f9a42f8729a5f354beaded7f (diff) | |
download | vyos-cloud-init-ef47b4f4c14ffe1337508f85f365b338a048a5a1.tar.gz vyos-cloud-init-ef47b4f4c14ffe1337508f85f365b338a048a5a1.zip |
Fix load -> read
Diffstat (limited to 'cloudinit/net/__init__.py')
-rw-r--r-- | cloudinit/net/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index ba0e39ae..776af0d3 100644 --- a/cloudinit/net/__init__.py +++ b/cloudinit/net/__init__.py @@ -63,7 +63,7 @@ def write_file(path, content): def read_file(path, decode='utf8', enoent=None): try: with open(path, "rb") as fh: - contents = fh.load() + contents = fh.read() except OSError as e: if e.errno == errno.ENOENT and enoent is not None: return enoent |