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
parent
2854aa010d
commit
d28dc10e0f
|
@ -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://"):
|
||||||
|
|
Loading…
Reference in New Issue