hcloud: inventory: missing compose variables (#64559)

pull/64998/head
Martin Westergaard Lassen 5 years ago committed by René Moser
parent 13a8dbfd5c
commit c9d3c9e233

@ -0,0 +1,2 @@
bugfixes:
- hcloud - Added missing host variables in Compose section

@ -208,7 +208,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable):
strict = self.get_option('strict')
# Composed variables
self._set_composite_vars(self.get_option('compose'), {}, server.name, strict=strict)
self._set_composite_vars(self.get_option('compose'), self.inventory.get_host(server.name).get_vars(), server.name, strict=strict)
# Complex groups based on jinja2 conditionals, hosts that meet the conditional are added to group
self._add_host_to_composed_groups(self.get_option('groups'), {}, server.name, strict=strict)

Loading…
Cancel
Save