mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
Remove dict comprehension for settings list
Not supported in python 2.6
This commit is contained in:
@@ -2983,12 +2983,14 @@ class SettingsList(ListCreateAPIView):
|
|||||||
# NOTE: Shortcutting the rbac class due to the merging of the settings manifest and the database
|
# NOTE: Shortcutting the rbac class due to the merging of the settings manifest and the database
|
||||||
# we'll need to extend this more in the future when we have user settings
|
# we'll need to extend this more in the future when we have user settings
|
||||||
return []
|
return []
|
||||||
all_defined_settings = {s.key: SettingsIntermediary(s.key,
|
all_defined_settings = {}
|
||||||
s.description,
|
for s in TowerSettings.objects.all():
|
||||||
s.category,
|
all_defined_settings[s.key] = SettingsIntermediary(s.key,
|
||||||
s.value_converted,
|
s.description,
|
||||||
s.value_type,
|
s.category,
|
||||||
s.user) for s in TowerSettings.objects.all()}
|
s.value_converted,
|
||||||
|
s.value_type,
|
||||||
|
s.user)
|
||||||
manifest_settings = settings.TOWER_SETTINGS_MANIFEST
|
manifest_settings = settings.TOWER_SETTINGS_MANIFEST
|
||||||
settings_actual = []
|
settings_actual = []
|
||||||
for settings_key in manifest_settings:
|
for settings_key in manifest_settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user