From 36477385a18833e78b46556388e94398c0df0830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 4 Sep 2022 12:20:49 +0200 Subject: [PATCH] Changed the long debugging output for loop/when --- inventory_plugins/reconstructed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory_plugins/reconstructed.py b/inventory_plugins/reconstructed.py index 78ea54b..b60c432 100644 --- a/inventory_plugins/reconstructed.py +++ b/inventory_plugins/reconstructed.py @@ -147,9 +147,9 @@ class RcInstruction: def dump(self): output = [] if self._condition is not None: - output.append("when: %s" % (repr(self._condition),)) + output.append("{when: %s}" % (repr(self._condition),)) if self._loop is not None: - output.append("loop[%s]: %s" % (self._loop_var, repr(self._loop))) + output.append("{loop[%s]: %s}" % (self._loop_var, repr(self._loop))) output.extend(self.dump_instruction()) return output