We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf247e commit 589e211Copy full SHA for 589e211
plugins/inventory/nb_inventory.py
@@ -300,6 +300,7 @@ def group_extractors(self):
300
"config_context": self.extract_config_context,
301
"manufacturers": self.extract_manufacturer,
302
"interfaces": self.extract_interfaces,
303
+ "custom_fields": self.extract_custom_fields,
304
}
305
306
def extract_disk(self, host):
@@ -455,6 +456,12 @@ def extract_interfaces(self, host):
455
456
except Exception:
457
return
458
459
+ def extract_custom_fields(self, host):
460
+ try:
461
+ return host["custom_fields"]
462
+ except Exception:
463
+ return
464
+
465
def refresh_platforms_lookup(self):
466
url = self.api_endpoint + "/api/dcim/platforms/?limit=0"
467
platforms = self.get_resource_list(api_url=url)
0 commit comments