mirror of
https://github.com/ansible/awx.git
synced 2026-06-27 17:38:02 -02:30
Merge branch 'devel' of github.com:ansible/ansible-tower into credential-api
This commit is contained in:
@@ -68,6 +68,8 @@ class Notifier(CommonModel):
|
||||
update_fields = kwargs.get('update_fields', [])
|
||||
for field in filter(lambda x: self.notification_class.init_parameters[x]['type'] == "password",
|
||||
self.notification_class.init_parameters):
|
||||
if self.notification_configuration[field].startswith("$encrypted$"):
|
||||
continue
|
||||
if new_instance:
|
||||
value = self.notification_configuration[field]
|
||||
setattr(self, '_saved_{}_{}'.format("config", field), value)
|
||||
@@ -84,7 +86,6 @@ class Notifier(CommonModel):
|
||||
self.notification_class.init_parameters):
|
||||
saved_value = getattr(self, '_saved_{}_{}'.format("config", field), '')
|
||||
self.notification_configuration[field] = saved_value
|
||||
#setattr(self.notification_configuration, field, saved_value)
|
||||
if 'notification_configuration' not in update_fields:
|
||||
update_fields.append('notification_configuration')
|
||||
self.save(update_fields=update_fields)
|
||||
|
||||
@@ -46,7 +46,8 @@ TEST_TOWER_SETTINGS_MANIFEST = {
|
||||
}
|
||||
|
||||
@override_settings(TOWER_SETTINGS_MANIFEST=TEST_TOWER_SETTINGS_MANIFEST)
|
||||
class SettingsTest(BaseTest):
|
||||
@pytest.mark.skip(reason="Settings deferred to 3.1")
|
||||
class SettingsPlaceholder(BaseTest):
|
||||
|
||||
def setUp(self):
|
||||
super(SettingsTest, self).setUp()
|
||||
|
||||
@@ -16,7 +16,7 @@ class TestApiV1RootView:
|
||||
'authtoken',
|
||||
'ping',
|
||||
'config',
|
||||
'settings',
|
||||
#'settings',
|
||||
'me',
|
||||
'dashboard',
|
||||
'organizations',
|
||||
|
||||
Reference in New Issue
Block a user