From dd95b9ed3d2a16740ea54a9bc6be9f891a44109c Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 21 Jan 2016 14:44:05 -0500 Subject: [PATCH] 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 --- awx/main/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/conf.py b/awx/main/conf.py index 4a6b97037b..11f206fd40 100644 --- a/awx/main/conf.py +++ b/awx/main/conf.py @@ -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()