Fixup based on feedback
This commit is contained in:
parent
b147c1a84b
commit
d1a5515de9
@ -200,7 +200,7 @@ def db_changed():
|
||||
migrate_database()
|
||||
else:
|
||||
juju_log('allowed_units either not presented, or local unit '
|
||||
'not in acl list: %s' % allowed_units)
|
||||
'not in acl list: %s' % repr(allowed_units))
|
||||
|
||||
|
||||
@hooks.hook('pgsql-db-relation-changed')
|
||||
|
@ -245,7 +245,7 @@ class TestChangedHooks(CharmTestCase):
|
||||
self.assertFalse(self.migrate_database.called)
|
||||
|
||||
def test_db_changed_relation_db_missing_acls(self):
|
||||
'It does not migration when acl list is not present'
|
||||
'No database migration is attempted when ACL list is not present'
|
||||
self.relation_get.return_value = None
|
||||
self.local_unit.return_value = 'cinder/0'
|
||||
self.CONFIGS.complete_contexts.return_value = ['shared-db']
|
||||
|
Loading…
Reference in New Issue
Block a user