Skip to content

Commit

Permalink
Use json.loads() to read results of password rotation usernames
Browse files Browse the repository at this point in the history
(cherry picked from commit ce2b26a)
  • Loading branch information
ajkavanagh authored and freyes committed Sep 21, 2023
1 parent d42e7ad commit 0c88450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zaza/openstack/charm_tests/mysql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,9 @@ def _get_password_from_keystone_leader():
'list-service-usernames',
action_params={}
)
usernames = action.data['results']['usernames'].split(',')
self.assertIn('keystone', usernames)
usernames = json.loads(action.data['results']['usernames'])
logging.info("... usernames: %s", ', '.join(usernames))
self.assertIn('keystone', usernames)

# grab the password for keystone from the leader / to verify the change
old_keystone_passwd_on_mysql = juju_utils.leader_get(
Expand Down

0 comments on commit 0c88450

Please sign in to comment.