From 8e36a8c183c9d653128f751cd91d54b2a8bde55f Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Thu, 10 Sep 2015 11:15:49 +0000
Subject: [PATCH] fix typo

---
 roles/calculateEtcHosts/files/makehosts.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/calculateEtcHosts/files/makehosts.py b/roles/calculateEtcHosts/files/makehosts.py
index 208e402a..179809dc 100755
--- a/roles/calculateEtcHosts/files/makehosts.py
+++ b/roles/calculateEtcHosts/files/makehosts.py
@@ -16,7 +16,7 @@ hosts={}
 for group in d['groups'].keys():
     i=0
     for h in d['groups'][group]:
-      name = d['hostsvars'][h]['ansible_hostname']
+      name = d['hostvars'][h]['ansible_hostname']
       if not domain:
         hosts[h] = [name]
       else:
-- 
GitLab