fix(ruff): add back in res variable since it's called in the following debug and add noqa for F841 on it since it will get auto-fixed

main
Marshall Hallenbeck 2023-10-17 14:30:24 -04:00
parent 2854aa010d
commit d28dc10e0f
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class winrm(connection):
for url in endpoints: for url in endpoints:
try: try:
self.logger.debug(f"Requesting URL: {url}") self.logger.debug(f"Requesting URL: {url}")
requests.post(url, verify=False, timeout=self.args.http_timeout) res = requests.post(url, verify=False, timeout=self.args.http_timeout) # noqa: F841
self.logger.debug("Received response code: {res.status_code}") self.logger.debug("Received response code: {res.status_code}")
self.endpoint = url self.endpoint = url
if self.endpoint.startswith("https://"): if self.endpoint.startswith("https://"):