Uploaded image for project: 'CREAM'
  1. CREAM
  2. CREAM-107

Bad timezone format

    XMLWordPrintable

    Details

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

      Description

      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))

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: