|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | import logging
|
6 |
| -import functools |
7 | 6 |
|
8 | 7 | from datetime import date, datetime
|
9 | 8 | from importlib.metadata import version
|
@@ -68,14 +67,14 @@ def is_up(self) -> bool:
|
68 | 67 |
|
69 | 68 | def redis_up(self) -> bool:
|
70 | 69 | '''Check if redis is up and running'''
|
71 |
| - r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'system','redis_up')))) |
| 70 | + r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'system', 'redis_up')))) |
72 | 71 | return r.json()
|
73 | 72 |
|
74 | 73 | # #### DB status ####
|
75 | 74 |
|
76 | 75 | def get_info(self) -> dict[str, Any]:
|
77 | 76 | '''Get more information about the current databases in use and when it was updated'''
|
78 |
| - r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'system','dbInfo')))) |
| 77 | + r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'system', 'dbInfo')))) |
79 | 78 | return r.json()
|
80 | 79 |
|
81 | 80 | def get_config_info(self) -> dict[str, Any]:
|
@@ -143,7 +142,7 @@ def get_vendor_product_vulnerabilities(self, vendor: str, product: str) -> list[
|
143 | 142 | :param vendor: A vendor owning products (must be in the known vendor list)
|
144 | 143 | :param product: A product owned by that vendor
|
145 | 144 | '''
|
146 |
| - r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'browse', vendor, product)))) |
| 145 | + r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'search', vendor, product)))) |
147 | 146 | return r.json()
|
148 | 147 |
|
149 | 148 | # #### Comments ####
|
|
0 commit comments