Skip to content

Commit 3059871

Browse files
committed
fix issue with sysvm volume creation - [SR_BACKEND_FAILURE_1200statvfs: path should be string, bytes, os.PathLike or integer, not function]
1 parent 63fb4f3 commit 3059871

File tree

1 file changed

+1
-1
lines changed
  • scripts/vm/hypervisor/xenserver/xcpserver83

1 file changed

+1
-1
lines changed

scripts/vm/hypervisor/xenserver/xcpserver83/NFSSR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def attach(self, sr_uuid, vdi_uuid):
257257
return super(NFSFileVDI, self).attach(sr_uuid, vdi_uuid)
258258

259259
def get_mtime(self, path):
260-
st = util.ioretry_stat(lambda: os.stat(path))
260+
st = util.ioretry_stat(path)
261261
return st[stat.ST_MTIME]
262262

263263
def clone(self, sr_uuid, vdi_uuid):

0 commit comments

Comments
 (0)