Verified Commit 98c56207 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

parser/host: Change VM host class to 'vm'

parent 47d3f213
......@@ -395,14 +395,16 @@ class NetBoxParser:
def determine_host_class(self):
if self.device:
host_class = "server"
role_slug = self.device.device_role.slug
elif self.vm:
host_class = "vm"
role_slug = self.vm.role.slug
if role_slug == "vm-host":
return "vm-host"
host_class = "vm-host"
return "server"
return host_class
def add_ip_checks(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment