diff options
Diffstat (limited to 'extras/ganesha/scripts/generate-epoch.py')
| -rwxr-xr-x | extras/ganesha/scripts/generate-epoch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/ganesha/scripts/generate-epoch.py b/extras/ganesha/scripts/generate-epoch.py index 5db5e56b480..77af014bab9 100755 --- a/extras/ganesha/scripts/generate-epoch.py +++ b/extras/ganesha/scripts/generate-epoch.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com> # This file is part of GlusterFS. @@ -36,13 +36,13 @@ def epoch_uuid(): uuid_bin = binascii.unhexlify(glusterd_uuid.replace("-","")) - epoch_uuid = int(uuid_bin.encode('hex'), 32) & 0xFFFF0000 + epoch_uuid = int(binascii.hexlify(uuid_bin), 32) & 0xFFFF0000 return epoch_uuid # Construct epoch as follows - # first 32-bit contains the now() time # rest 32-bit value contains the local glusterd node uuid epoch = (epoch_now() | epoch_uuid()) -print str(epoch) +print((str(epoch))) exit(0) |
