diff options
| author | VG <vg@devys.org> | 2015-07-19 03:50:08 +0200 | 
|---|---|---|
| committer | VG <vg@devys.org> | 2015-07-19 03:50:08 +0200 | 
| commit | 3cbf206e350635ac1849f4b9fa519c04ad993dda (patch) | |
| tree | e3b8d50e0b1725e9299647e5bb10fa1ae8b98162 | |
| parent | 6f1ef76174f7cc5de369b45c203a5e5001cdf1c3 (diff) | |
| download | uuidxer-3cbf206e350635ac1849f4b9fa519c04ad993dda.tar.gz uuidxer-3cbf206e350635ac1849f4b9fa519c04ad993dda.tar.bz2 uuidxer-3cbf206e350635ac1849f4b9fa519c04ad993dda.zip  | |
fix hostname for old python 3.2
| -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,  | 
