summaryrefslogtreecommitdiff
path: root/kpov_judge/test_prepare_disks.py
diff options
context:
space:
mode:
authorgasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-02-12 10:16:51 +0000
committergasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-02-12 10:16:51 +0000
commit457033d6bbedc395fcd844bac2d06b7cae3d1cbe (patch)
treeefcfaeea55036df5783c85d4b8ab2b6d53f224ed /kpov_judge/test_prepare_disks.py
parent0bd559d148746c2fd74536489080766f458a5dba (diff)
Task smb_client_uptime done.
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@273 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/test_prepare_disks.py')
-rwxr-xr-xkpov_judge/test_prepare_disks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kpov_judge/test_prepare_disks.py b/kpov_judge/test_prepare_disks.py
index 963f5cd..0e9aaac 100755
--- a/kpov_judge/test_prepare_disks.py
+++ b/kpov_judge/test_prepare_disks.py
@@ -22,6 +22,11 @@ class SSHGuestFs:
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname, username=username, password=password)
self.conn = client
+ def __del__(self):
+ try:
+ self.conn.close()
+ except:
+ pass
def chmod(self, mode, path):
self.conn.exec_command('chmod {} "{}"'.format(mode, path))
def chown(self, owner, group, path):