hcloud: Fix missing labels propagation in inventory plugin. (#57586)
This commit is contained in:
parent
ce1f25cffd
commit
18e0d679dd
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ class InventoryModule(BaseInventoryPlugin, Constructable):
|
||||||
self.inventory.set_variable(server.name, "image_name", to_native(server.image.name))
|
self.inventory.set_variable(server.name, "image_name", to_native(server.image.name))
|
||||||
self.inventory.set_variable(server.name, "image_os_flavor", to_native(server.image.os_flavor))
|
self.inventory.set_variable(server.name, "image_os_flavor", to_native(server.image.os_flavor))
|
||||||
|
|
||||||
|
# Labels
|
||||||
|
self.inventory.set_variable(server.name, "labels", dict(server.labels))
|
||||||
|
|
||||||
def verify_file(self, path):
|
def verify_file(self, path):
|
||||||
"""Return the possibly of a file being consumable by this plugin."""
|
"""Return the possibly of a file being consumable by this plugin."""
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue