HEPCloud / decisionengine_modules

Apache License 2.0
2 stars 19 forks source link

Bug in NerscSFApi.py. #500

Open StevenCTimm opened 3 months ago

StevenCTimm commented 3 months ago

when testing on fermicloud814 we discovered a bug in NerscSFApi which hyunwoo helped me fix. I tried to push it to decisionengine_modules repo but it seems I don't have the permissions.

This is the diff

[timm@snowball decisionengine_modules]$ git diff master diff --git a/src/decisionengine_modules/NERSC/sources/NerscSFApi.py b/src/decisionengine_modules/NERSC/sources/NerscSFApi.py index 5d38532..a084b3a 100644 --- a/src/decisionengine_modules/NERSC/sources/NerscSFApi.py +++ b/src/decisionengine_modules/NERSC/sources/NerscSFApi.py @@ -6,7 +6,7 @@ Get allocation info from Nersc SuperFacilityAPI """ import json

-# import time +import time import os

import jwt @@ -36,7 +36,7 @@ class NerscSFApi(Source.Source): self.logger = self.logger.bind( class_module=name.split(".")[-1], )

StevenCTimm commented 3 months ago

I have made PR #502 with the above patch. Request review of it, please.