aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan.py b/scan.py
index 7432cef..cfae385 100755
--- a/scan.py
+++ b/scan.py
@@ -14,7 +14,7 @@ orig_hostname: {hostname}
'''
-def create_uuid_txt(root, hostname=os.uname().nodename):
+def create_uuid_txt(root, hostname=os.uname()[1]):
my_uuid = str(uuid.uuid4())
with open(os.path.join(root, 'uuid.txt'), 'w') as out:
out.write(uuid_msg.format(uuid=my_uuid,