Projet

Général

Profil

0001-hobo-do-not-deprovision-users-41922.patch

Frédéric Péters, 21 avril 2020 12:44

Télécharger (1,06 ko)

Voir les différences:

Subject: [PATCH] hobo: do not deprovision users (#41922)

 wcs/ctl/hobo_notify.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
wcs/ctl/hobo_notify.py
208 208
                elif action == 'deprovision':
209 209
                    if 'uuid' not in o:
210 210
                        raise KeyError('user without uuid')
211
                    uuid = o['uuid']
212
                    users = User.get_users_with_name_identifier(uuid)
213
                    for user in users:
214
                        user.remove_self()
211
                    # do not remove for real
212
                    pass
215 213
            except Exception as e:
216 214
                publisher.notify_of_exception(sys.exc_info(), context='[PROVISIONNING]')
217 215

  
218
-