mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
add clarifying comment
* noting that the inv update task only uses the inventory update management command to save the inv to the database (it doesn't do the work of fetching hosts / groups)
This commit is contained in:
@@ -2784,6 +2784,12 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
from awx.main.management.commands.inventory_import import Command as InventoryImportCommand
|
from awx.main.management.commands.inventory_import import Command as InventoryImportCommand
|
||||||
cmd = InventoryImportCommand()
|
cmd = InventoryImportCommand()
|
||||||
try:
|
try:
|
||||||
|
# note that we are only using the management command to
|
||||||
|
# save the inventory data to the database.
|
||||||
|
# we are not asking it to actually fetch hosts / groups.
|
||||||
|
# that work was taken care of earlier, when
|
||||||
|
# BaseTask.run called ansible-inventory (by way of ansible-runner)
|
||||||
|
# for us.
|
||||||
save_status, tb, exc = cmd.perform_update(options, data, inventory_update)
|
save_status, tb, exc = cmd.perform_update(options, data, inventory_update)
|
||||||
except Exception as raw_exc:
|
except Exception as raw_exc:
|
||||||
# Ignore license errors specifically
|
# Ignore license errors specifically
|
||||||
|
|||||||
Reference in New Issue
Block a user