diff options
-rwxr-xr-x | scan.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |