From 3cbf206e350635ac1849f4b9fa519c04ad993dda Mon Sep 17 00:00:00 2001 From: VG Date: Sun, 19 Jul 2015 03:50:08 +0200 Subject: fix hostname for old python 3.2 --- scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3