authentic worker: skip undefined attributes (#29388)

This commit is contained in:
Frédéric Péters 2019-01-02 09:40:32 +01:00
parent 46fc66d636
commit 4394ae788b
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ class Command(hobo_deploy.Command):
for key in ('label', 'description', 'asked_on_registration',
'user_editable', 'user_visible', 'required',
'searchable', 'disabled'):
setattr(attr, key, attribute[key])
if key in attribute:
setattr(attr, key, attribute[key])
attr.order = i
if attribute['disabled']:
disabled_fields.append(attr.name)