summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/net/__init__.py2
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