authentic worker: skip undefined attributes (#29388)
This commit is contained in:
parent
46fc66d636
commit
4394ae788b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue