From c8d5846ab93e3aab13ae692b88cc6bed64fb83b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bocahu?= Date: Mon, 16 Dec 2013 19:55:20 +0100 Subject: [PATCH] Let merge hash_bahaviour work with dynamic inventory --- lib/ansible/inventory/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index f202a14192b..57b0f318b0b 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -351,7 +351,7 @@ class Inventory(object): vars.update(host.get_variables()) if self.parser is not None: - vars.update(self.parser.get_host_variables(host)) + vars = utils.combine_vars(vars, self.parser.get_host_variables(host)) return vars def add_group(self, group):