Skip to content

Commit

Permalink
Merge pull request #3 from k-304/add-cluster-host-to-plugin-response
Browse files Browse the repository at this point in the history
Add cluster host to the plugins response
  • Loading branch information
k-304 authored Apr 26, 2024
2 parents 159f309 + 5474616 commit 6999f3a
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 6999f3a

Please sign in to comment.