1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

change method of obtaining hostname to match ansible/library/setup

This commit is contained in:
Matthew Johnson 2012-09-13 02:42:54 -04:00 committed by Stephen Fromm
parent 2b24131baa
commit 0841ed4796

View file

@ -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: