Revision 9a914f7a lib/rpc.py

b/lib/rpc.py
45 45
from ganeti import errors
46 46
from ganeti import netutils
47 47
from ganeti import ssconf
48
from ganeti import runtime
48 49

  
49 50
# pylint has a bug here, doesn't see this import
50 51
import ganeti.http.client  # pylint: disable-msg=W0611
......
1168 1169
    file_contents = utils.ReadFile(file_name)
1169 1170
    data = cls._Compress(file_contents)
1170 1171
    st = os.stat(file_name)
1171
    params = [file_name, data, st.st_mode, st.st_uid, st.st_gid,
1172
              st.st_atime, st.st_mtime]
1172
    getents = runtime.GetEnts()
1173
    params = [file_name, data, st.st_mode, getents.LookupUid(st.st_uid),
1174
              getents.LookupGid(st.st_gid), st.st_atime, st.st_mtime]
1173 1175
    return cls._StaticMultiNodeCall(node_list, "upload_file", params,
1174 1176
                                    address_list=address_list)
1175 1177

  

Also available in: Unified diff