Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Sep 28, 2023
1 parent 0ca305f commit 13a728d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zaza/openstack/utilities/swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,8 @@ def is_ring_synced(proxy_app, ring, expected_hosts, model_name=None):
result = zaza.model.run_on_leader(proxy_app, cmd, model_name=model_name)
expected = ('{num}/{num} hosts matched, 0 error[s] while checking hosts.'
''.format(num=expected_hosts))
logging.info('Cmd: %s', str(cmd))
logging.info('Stdout: %s', result['Stdout'])
logging.info('Stderr: %s', result.get('Stderr', ''))
logging.info('Expected: %s', expected)
return bool(result['Stdout'].strip('\n') == expected)

0 comments on commit 13a728d

Please sign in to comment.