summaryrefslogtreecommitdiffstats
path: root/bin/ansible-pull
diff options
context:
space:
mode:
authorMatthew Johnson <mjjohnson33@gmail.com>2012-09-13 08:42:54 +0200
committerStephen Fromm <sfromm@gmail.com>2012-10-12 16:55:22 +0200
commit0841ed4796fe5db279ae290438ecbc227ce30799 (patch)
treea584289c9e439acbae354fc007112b68c2ca9db1 /bin/ansible-pull
parentfetch the git repo before trying to find a playbook (diff)
downloadansible-0841ed4796fe5db279ae290438ecbc227ce30799.tar.xz
ansible-0841ed4796fe5db279ae290438ecbc227ce30799.zip
change method of obtaining hostname to match ansible/library/setup
Diffstat (limited to 'bin/ansible-pull')
-rwxr-xr-xbin/ansible-pull4
1 files 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: