summaryrefslogtreecommitdiff
path: root/kpov_judge/test_prepare_disks.py
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/test_prepare_disks.py')
-rwxr-xr-xkpov_judge/test_prepare_disks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpov_judge/test_prepare_disks.py b/kpov_judge/test_prepare_disks.py
index 0e9aaac..c810cd2 100755
--- a/kpov_judge/test_prepare_disks.py
+++ b/kpov_judge/test_prepare_disks.py
@@ -28,9 +28,9 @@ class SSHGuestFs:
except:
pass
def chmod(self, mode, path):
- self.conn.exec_command('chmod {} "{}"'.format(mode, path))
+ self.conn.exec_command('chmod {} "{}"'.format(oct(mode, 8), path))
def chown(self, owner, group, path):
- self.conn.exec_command('chown {}.{} "{}"'.format(owner, group, path))
+ self.conn.exec_command('chown {}.{} "{}"'.format(str(owner), str(group), path))
def command(self, arguments):
self.conn.exec_command(arguments)
def cp(self, src, dest):