1
0
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:
AlanCoding 2017-08-04 08:29:57 -04:00
parent d0c50f8ede
commit 59be2796be

View File

@ -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