Bad timezone format

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • 1.16.1
    • Affects Version/s: None
    • Security Level: Public (Visbile by non-authn users.)
    • None

      Source: https://ggus.eu/ws/ticket_info.php?ticket=94518

      The low level infoprovider for TORQUE raises an exception when dealing with timezone:
      ERROR:lcg-info-dynamic-scheduler:Execution error: Traceback (most recent call last):
      File "/usr/libexec/lrmsinfo-pbs", line 52, in main
      sys.stdout.write("now %d\n" % int(time.time()) + time.timezone)
      TypeError: cannot concatenate 'str' and 'int' objects

      The correct line of code is:

      sys.stdout.write("now %d\n" % int(time.time() + time.timezone))

            Assignee:
            Paolo Andreetto
            Reporter:
            Paolo Andreetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: