Commit 0841ed47 by Matthew Johnson Committed by Stephen Fromm

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

parent 2b24131b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment