Commit 4c7c81d7 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti.rpc: Use utils.ReadFile instead of reading file directly

Reviewed-by: iustinp
parent 6346a9e5
......@@ -599,11 +599,7 @@ class RpcRunner(object):
to optimize the RPC speed
fh = file(file_name)
data =
data = utils.ReadFile(file_name)
st = os.stat(file_name)
params = [file_name, data, st.st_mode, st.st_uid, st.st_gid,
st.st_atime, st.st_mtime]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment