diff options
| author | dd <dd@wx.tnyzeq.icu> | 2024-10-13 17:31:54 +0200 |
|---|---|---|
| committer | dd <dd@wx.tnyzeq.icu> | 2024-10-13 17:31:54 +0200 |
| commit | 748a1caad9bddcdae0e268fdff1c902dd0292ca9 (patch) | |
| tree | 10ecb2bba23345692b5e4f3001e6bf8178d00e19 /new/lib/github.py | |
| parent | 4bf5d3bc31e74cefd84aed6868ab0d1adf445f24 (diff) | |
| download | vyos-jenkins-748a1caad9bddcdae0e268fdff1c902dd0292ca9.tar.gz vyos-jenkins-748a1caad9bddcdae0e268fdff1c902dd0292ca9.zip | |
circinus refactoring - updated cache/storage class
Diffstat (limited to 'new/lib/github.py')
| -rw-r--r-- | new/lib/github.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/new/lib/github.py b/new/lib/github.py index 42ea3d7..fd111d1 100644 --- a/new/lib/github.py +++ b/new/lib/github.py @@ -12,7 +12,7 @@ import yaml sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))) from lib.helpers import setup_logging -from lib.cache import Cache +from lib.objectstorage import ObjectStorage from lib.helpers import refuse_root, data_dir @@ -171,7 +171,7 @@ if __name__ == "__main__": github = GitHub() - cache = Cache(os.path.join(data_dir, "github-vyos-cache.json"), dict, {}) + cache = ObjectStorage(os.path.join(data_dir, "github-vyos-cache.json"), dict, {}) repositories = cache.callback("repos", callback=lambda: github.find_org_repositories("vyos")) pprint(github.analyze_repositories_workflow("vyos", repositories, "circinus")) |
