Project

General

Profile

Bug #13799

erreur de déprovisionning de rôle

Added by Frédéric Péters almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
29 Oct 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Message hobo_notify avec u'objects': {u'data': [{u'uuid': u'c31dbe98bfe34ab6b574eb8eacdf693f'}], (cf #13798 pour l'intégrale), mais w.c.s. attend d'autres attributs (malgré un check_valid_role qui contient des "or" et non des "and" comme dans hobo).

  File "/usr/sbin/wcsctl", line 8, in <module>
    ctl.run(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ctl.py", line 159, in run
    return cmd.run(args, options)
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ctl.py", line 69, in run
    return self.execute(base_options, sub_options, args)
  File "/usr/lib/python2.7/dist-packages/wcs/ctl/hobo_notify.py", line 54, in execute
    self.process_notification(notification, pub)
  File "/usr/lib/python2.7/dist-packages/wcs/ctl/hobo_notify.py", line 93, in process_notification
    full=full) 
  File "/usr/lib/python2.7/dist-packages/wcs/ctl/hobo_notify.py", line 110, in provision_role
    slug = o['slug'].encode(publisher.site_charset)
KeyError: 'slug'

Files

Associated revisions

Revision 6cc90e31 (diff)
Added by Frédéric Péters almost 5 years ago

hobo: don't require all role attributes when deprovisionning (#13799)

History

#1

Updated by Frédéric Péters almost 5 years ago

Aussi, ça n'autorise pas un message de déprovisionning avec full à True, et ça étend un peu les tests.

#2

Updated by Benjamin Dauvergne almost 5 years ago

Ack.

#3

Updated by Frédéric Péters almost 5 years ago

  • Status changed from En cours to Résolu (à déployer)
commit 6cc90e31a990e677f653e0fc94e7fa4a68f71e75
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Oct 29 22:14:41 2016 +0200

    hobo: don't require all role attributes when deprovisionning (#13799)
#4

Updated by Frédéric Péters almost 5 years ago

  • Target version set to v1.64
#5

Updated by Frédéric Péters almost 5 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF