Skip to content

Commit

Permalink
Fix Code becoming integer.
Browse files Browse the repository at this point in the history
Value of the Code key in the returned Dict is str in master branch. However
while trying to get compatible with juju 3.x series it became int. Now it is
not conforming to the function signature. Also there are usages in some
tests so it reverted back to str.
  • Loading branch information
Erhan Sunar authored and freyes committed Oct 5, 2023
1 parent 084fced commit cef47b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaza/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def _normalise_action_results(results):
elif results.get(old_key) and not results.get(key):
results[key] = results[old_key]
if 'return-code' in results:
results['Code'] = results.get('return-code')
results['Code'] = str(results.get('return-code'))
del results['return-code']
return results
else:
Expand Down

0 comments on commit cef47b8

Please sign in to comment.