Skip to content

Commit dfef7ea

Browse files
k-304Kenneth Joss
andauthored
Add cluster host to the plugins response (#1219)
Co-authored-by: Kenneth Joss <kenneth@cloudscale.ch>
1 parent 56e6694 commit dfef7ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ def group_extractors(self):
550550
"cluster": self.extract_cluster,
551551
"cluster_group": self.extract_cluster_group,
552552
"cluster_type": self.extract_cluster_type,
553+
"cluster_device": self.extract_cluster_device,
553554
"is_virtual": self.extract_is_virtual,
554555
"serial": self.extract_serial,
555556
"asset_tag": self.extract_asset_tag,
@@ -991,6 +992,9 @@ def extract_cluster_type(self, host):
991992
except Exception:
992993
return
993994

995+
def extract_cluster_device(self, host):
996+
return host.get("device")
997+
994998
def extract_is_virtual(self, host):
995999
return host.get("is_virtual")
9961000

0 commit comments

Comments
 (0)