From 41848d3d11dfc7e3b3a3433efe47c8d1331e8c83 Mon Sep 17 00:00:00 2001 From: KB-perByte Date: Wed, 4 Oct 2023 16:48:52 +0530 Subject: [PATCH] fix order --- changelogs/fragments/logging_global_order.yaml | 3 +++ .../network/ios/config/logging_global/logging_global.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/logging_global_order.yaml diff --git a/changelogs/fragments/logging_global_order.yaml b/changelogs/fragments/logging_global_order.yaml new file mode 100644 index 000000000..3adc2c68f --- /dev/null +++ b/changelogs/fragments/logging_global_order.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: + - ios_logging_global - fix configuration order to configure discriminator before buffer. diff --git a/plugins/module_utils/network/ios/config/logging_global/logging_global.py b/plugins/module_utils/network/ios/config/logging_global/logging_global.py index 4eb442a0c..bfaab013b 100644 --- a/plugins/module_utils/network/ios/config/logging_global/logging_global.py +++ b/plugins/module_utils/network/ios/config/logging_global/logging_global.py @@ -108,9 +108,9 @@ def _compare(self, want, have): the `want` and `have` data with the `parsers` defined for the Logging_global network resource. """ + self._compare_complex_attrs(want, have) self.compare(parsers=self.parsers, want=want, have=have) self._compare_lists_attrs(want, have) - self._compare_complex_attrs(want, have) def _compare_lists_attrs(self, want, have): """Compare list of dict"""