Skip to content

Commit

Permalink
Add cluster host to the plugins response
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Joss committed Apr 19, 2024
1 parent 159f309 commit 5474616
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/inventory/nb_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ def group_extractors(self):
"cluster": self.extract_cluster,
"cluster_group": self.extract_cluster_group,
"cluster_type": self.extract_cluster_type,
"cluster_device": self.extract_cluster_device,
"is_virtual": self.extract_is_virtual,
"serial": self.extract_serial,
"asset_tag": self.extract_asset_tag,
Expand Down Expand Up @@ -947,6 +948,9 @@ def extract_cluster_type(self, host):
except Exception:
return

def extract_cluster_device(self, host):
return host.get("device")

def extract_is_virtual(self, host):
return host.get("is_virtual")

Expand Down

0 comments on commit 5474616

Please sign in to comment.