From 53971e825f9affcc9ae35bf0fed262696a58951e Mon Sep 17 00:00:00 2001 From: Erhan Sunar Date: Thu, 24 Aug 2023 13:29:15 +0300 Subject: [PATCH] Fix Code becoming integer. 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. --- zaza/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/model.py b/zaza/model.py index 01048b3d6..002edbc1a 100644 --- a/zaza/model.py +++ b/zaza/model.py @@ -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: