Skip to content

Commit

Permalink
proxmox: skip containers
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed May 5, 2024
1 parent 7909e11 commit 26ecaad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion kvirt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ def __init__(self, client=None, debug=False, quiet=False, region=None, zone=None
tunnelhost=self.tunnelhost, tunneluser=self.tunneluser, tunnelport=self.tunnelport,
tunneldir=self.tunneldir)
elif self.type == 'proxmox':
warning("Proxmox provider is Work In Progress. Use at your own risk!")
user = options.get('user')
if user is None:
error("Missing user in the configuration. Leaving")
Expand Down
6 changes: 4 additions & 2 deletions kvirt/providers/proxmox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def list(self):
for nic in net["ip-addresses"]:
if nic["ip-address-type"] == "ipv4":
ips.append(nic["ip-address"])

vm_config = self.conn.nodes(vm["node"]).qemu(vm["vmid"]).config.get()
try:
vm_config = self.conn.nodes(vm["node"]).qemu(vm["vmid"]).config.get()
except:
continue
metadata = self._parse_notes(vm_config.get("description"))

vms.append(
Expand Down

0 comments on commit 26ecaad

Please sign in to comment.