From 0841ed4796fe5db279ae290438ecbc227ce30799 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Thu, 13 Sep 2012 02:42:54 -0400 Subject: [PATCH] change method of obtaining hostname to match ansible/library/setup --- bin/ansible-pull | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ansible-pull b/bin/ansible-pull index 284139f043..677bf60b02 100755 --- a/bin/ansible-pull +++ b/bin/ansible-pull @@ -40,7 +40,7 @@ import os import subprocess import sys import datetime -import platform +import socket from optparse import OptionParser DEFAULT_PLAYBOOK = 'local.yml' @@ -85,7 +85,7 @@ def main(args): if rc != 0: return rc - hostname = "%s.yml" % platform.node() + hostname = "%s.yml" % socket.getfqdn() if not args: try: