Skip to content

Commit

Permalink
style: Automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 6, 2024
1 parent 271f2fe commit 964c1c0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions modules/machinery/vmwarerest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

import os

import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning

Expand Down Expand Up @@ -75,9 +75,7 @@ def get_vms(self):
response = s.get(
f"{self.api_url}/vms",
auth=(self.username, self.password),
headers={
"Accept": "application/vnd.vmware.vmw.rest-v1+json"
},
headers={"Accept": "application/vnd.vmware.vmw.rest-v1+json"},
)
except Exception:
raise CuckooMachineError("VMwareREST: Couldn't connect to vmrest server.")
Expand All @@ -90,9 +88,7 @@ def get_power(self, vmmoid):
response = s.get(
f"{self.api_url}/vms/{vmmoid}/power",
auth=(self.username, self.password),
headers={
"Accept": "application/vnd.vmware.vmw.rest-v1+json"
},
headers={"Accept": "application/vnd.vmware.vmw.rest-v1+json"},
)
except Exception:
raise CuckooMachineError("VMwareREST: Couldn't connect to vmrest server.")
Expand Down

0 comments on commit 964c1c0

Please sign in to comment.