From bd82db684f879e3b3d77ead9a55814e6e1de5ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 29 Jun 2017 14:27:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B8=20/home/.=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/client/client.py | 2 ++ pym/client/utils/cl_client_sync.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/client/client.py b/pym/client/client.py index 81e614a..90ee1f6 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -978,6 +978,8 @@ class Client(commandServer, encrypt, Desktop): def umountPath(self, upath): if upath and not self.umountSleepPath(upath): return False + if os.path.exists(upath): + os.rmdir(upath) return True def getDefaultRunlevelDaemons(self): diff --git a/pym/client/utils/cl_client_sync.py b/pym/client/utils/cl_client_sync.py index ca80cd2..08bb4c8 100644 --- a/pym/client/utils/cl_client_sync.py +++ b/pym/client/utils/cl_client_sync.py @@ -242,7 +242,6 @@ class ClClientSyncLoginAction(Action): }, # отключить удалённый профиль {'name': 'domain_sync:umount_unix', - 'message': 'Umount {cl_client_user_mount_unix_path}', 'method': 'Client.umountPath(cl_client_user_mount_unix_path)', 'depend': Tasks.hasnot('failed') },