on python3, integers are of unlimited size. while on python2, "long"
integers have unlimited size.
Fixes: https://tracker.ceph.com/issues/38627
Signed-off-by: Kefu Chai <kchai@redhat.com>
the selftest module to manage testing scenarios related to tracking
health history.
"""
- hours = long(hours)
+ try:
+ hours = long(hours)
+ except NameError:
+ hours = int(hours)
health_util.NOW_OFFSET = datetime.timedelta(hours = hours)
self.log.warning("Setting now time offset {}".format(health_util.NOW_OFFSET))