From aad3f680eb6ed738129795260acfcd983e3eb9c8 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 4 Oct 2018 23:34:05 +0200 Subject: [PATCH 4/4] hobo_notify: deprovision by setting the deleted flag (#24430) --- wcs/ctl/hobo_notify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcs/ctl/hobo_notify.py b/wcs/ctl/hobo_notify.py index 26c4b824..55bc26e0 100644 --- a/wcs/ctl/hobo_notify.py +++ b/wcs/ctl/hobo_notify.py @@ -207,7 +207,8 @@ class CmdHoboNotify(Command): uuid = o['uuid'] users = User.get_users_with_name_identifier(uuid) for user in users: - user.remove_self() + user.deleted = True + user.store() except Exception, e: publisher.notify_of_exception(sys.exc_info(), context='[PROVISIONNING]') -- 2.18.0