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 ...@@ -40,7 +40,7 @@ import os
import subprocess import subprocess
import sys import sys
import datetime import datetime
import platform import socket
from optparse import OptionParser from optparse import OptionParser
DEFAULT_PLAYBOOK = 'local.yml' DEFAULT_PLAYBOOK = 'local.yml'
...@@ -85,7 +85,7 @@ def main(args): ...@@ -85,7 +85,7 @@ def main(args):
if rc != 0: if rc != 0:
return rc return rc
hostname = "%s.yml" % platform.node() hostname = "%s.yml" % socket.getfqdn()
if not args: if not args:
try: 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