1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fix up an issue update/assigning config keys

If they already existed or in the case of posting a license it would
fail before.  This fixes that up
This commit is contained in:
Matthew Jones 2016-01-21 14:44:05 -05:00
parent 0426a463ea
commit dd95b9ed3d

View File

@ -45,7 +45,8 @@ class TowerConfiguration(object):
value=value,
value_type=settings_entry['type'])
else:
settings_actual['value'] = value
settings_actual = settings_actual[0]
settings_actual.value = value
settings_actual.save()
tower_settings = TowerConfiguration()