Rework the export of full dependent objects

and include hosts and groups in the export.
This commit is contained in:
Jeff Bradberry
2020-10-12 11:24:03 -04:00
committed by Ryan Petrello
parent df874966a6
commit 607bc07887
2 changed files with 40 additions and 12 deletions

View File

@@ -259,6 +259,7 @@ class Group(HasCreate, HasVariables, base.Base):
dependencies = [Inventory]
optional_dependencies = [Credential, InventoryScript]
NATURAL_KEY = ('name', 'inventory')
@property
def is_root_group(self):
@@ -367,6 +368,7 @@ page.register_page([resources.groups,
class Host(HasCreate, HasVariables, base.Base):
dependencies = [Inventory]
NATURAL_KEY = ('name', 'inventory')
def payload(self, inventory, **kwargs):
payload = PseudoNamespace(