From e566c20b24b085a0d797de534e5e4315413b9f18 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 25 Oct 2016 14:38:31 -0500 Subject: [PATCH] Remove deprecated ansible_ssh_host variable This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host' variable has been deprecated as noted here: [0]. [0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups Change-Id: I39892435950eca6da773dd947894da2125eab147 Related-Bug: #1636606 Signed-off-by: Kevin Carter --- strategy/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strategy/linear.py b/strategy/linear.py index b0a4d31..ca4bc38 100644 --- a/strategy/linear.py +++ b/strategy/linear.py @@ -137,7 +137,7 @@ class StrategyModule(LINEAR.StrategyModule): ph = self._inventory.get_host(physical_host) ansible_host = ph.vars.get('ansible_host') if not ansible_host: - ansible_host = ph.vars.get('ansible_ssh_host') + ansible_host = ph.vars.get('ansible_host') if ansible_host: _vars['physical_host'] = ansible_host _vars['physical_hostname'] = physical_host