hcloud: Fix missing labels propagation in inventory plugin. (#57586)

This commit is contained in:
Stanislav S. Yarmonov 2019-08-07 16:51:09 +03:00 committed by René Moser
parent ce1f25cffd
commit 18e0d679dd

View file

@ -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_os_flavor", to_native(server.image.os_flavor))
# Labels
self.inventory.set_variable(server.name, "labels", dict(server.labels))
def verify_file(self, path):
"""Return the possibly of a file being consumable by this plugin."""
return (