mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
include read_only settings in list for special case
This commit is contained in:
parent
d0c50f8ede
commit
59be2796be
@ -99,7 +99,8 @@ class SettingsRegistry(object):
|
||||
continue
|
||||
if kwargs.get('category_slug', None) in slugs_to_ignore:
|
||||
continue
|
||||
if read_only in {True, False} and kwargs.get('read_only', False) != read_only:
|
||||
if (read_only in {True, False} and kwargs.get('read_only', False) != read_only and
|
||||
setting not in ('AWX_ISOLATED_PRIVATE_KEY', 'AWX_ISOLATED_PUBLIC_KEY')):
|
||||
# Note: Doesn't catch fields that set read_only via __init__;
|
||||
# read-only field kwargs should always include read_only=True.
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user