From c1a3d7f91ad1c803d02f7d2fae045cc348cc6d63 Mon Sep 17 00:00:00 2001 From: Fred-sun <37327967+Fred-sun@users.noreply.github.com> Date: Thu, 12 Jan 2023 16:40:00 +0800 Subject: [PATCH] Add compose support in inventory/azure_rm.py (#1065) --- plugins/inventory/azure_rm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/azure_rm.py b/plugins/inventory/azure_rm.py index dc4973eec..dbc18435a 100644 --- a/plugins/inventory/azure_rm.py +++ b/plugins/inventory/azure_rm.py @@ -285,7 +285,10 @@ def _get_hosts(self): self._process_queue_serial() constructable_config_strict = boolean(self.get_option('fail_on_template_errors')) - constructable_config_compose = self.get_option('hostvar_expressions') + if self.get_option('hostvar_expressions') is not None: + constructable_config_compose = self.get_option('hostvar_expressions') + else: + constructable_config_compose = self.get_option('compose') constructable_config_groups = self.get_option('conditional_groups') constructable_config_keyed_groups = self.get_option('keyed_groups')