mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Rework the export of full dependent objects
and include hosts and groups in the export.
This commit is contained in:
committed by
Ryan Petrello
parent
df874966a6
commit
607bc07887
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user