Skip to content

Commit

Permalink
fix(Security): Minor fixes from scans
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Jan 9, 2024
1 parent b1e7dd0 commit 1d7fb8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions simple_vm_client/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ def get_server(self, openstack_id: str) -> VM:
return server

def get_servers(self) -> list[VM]:
servers = openstack_servers = self.openstack_connector.get_servers()
servers = self.openstack_connector.get_servers()
servers_full = []

for server in servers:
servers_full.append(self.forc_connector.get_playbook_status(server=server))
serv = thrift_converter.os_to_thrift_servers(openstack_servers=servers)
return servers_full
return serv

def get_servers_by_ids(self, server_ids: list[str]) -> list[VM]:
return thrift_converter.os_to_thrift_servers(
Expand Down
4 changes: 2 additions & 2 deletions simple_vm_client/util/thrift_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def os_to_thrift_volume(openstack_volume: OpenStack_Volume) -> Volume:
try:
device = openstack_volume.attachments[0]["device"]
server_id = openstack_volume.attachments[0]["server_id"]
except Exception:
pass
except Exception as e:
logger.log(f"Exception on os_to_thrift_volume:\n{e}")
volume = Volume(
status=openstack_volume.status,
id=openstack_volume.id,
Expand Down

0 comments on commit 1d7fb8c

Please sign in to comment.