mirror of
https://github.com/ansible/awx.git
synced 2026-08-02 10:59:56 -02:30
Merge pull request #6144 from wwitzel3/issue-5745
Support dynamic Inventory
This commit is contained in:
@@ -36,6 +36,16 @@ class Migration(migrations.Migration):
|
||||
name='inventory',
|
||||
field=models.ForeignKey(related_name='inventory_sources', default=None, to='main.Inventory', null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='inventory',
|
||||
name='host_filter',
|
||||
field=awx.main.fields.DynamicFilterField(default=None, help_text='Filter that will be applied to the hosts of this inventory.', null=True, blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='inventory',
|
||||
name='kind',
|
||||
field=models.CharField(default=b'standard', help_text='Kind of inventory being represented.', max_length=32, choices=[(b'standard', 'Hosts have a direct link to this inventory.'), (b'dynamic', 'Hosts for inventory generated using the host_filter property.')]),
|
||||
),
|
||||
|
||||
# Facts
|
||||
migrations.AlterField(
|
||||
|
||||
Reference in New Issue
Block a user