Scan jobs have been removed, clean up old refs

see https://github.com/ansible/awx/issues/5603
This commit is contained in:
Elijah DeLee
2020-01-21 12:11:53 -05:00
parent 1ce197041f
commit 1e796076f5
5 changed files with 2 additions and 47 deletions

View File

@@ -131,8 +131,6 @@ class JobTemplate(
inventory=Inventory,
project=None,
**kwargs):
if not project and job_type != 'scan':
project = Project
if not inventory and not kwargs.get('ask_inventory_on_launch', False):
inventory = Inventory

View File

@@ -63,7 +63,6 @@ class Resources(object):
_inventory_related_root_groups = r'inventories/\d+/root_groups/'
_inventory_related_script = r'inventories/\d+/script/'
_inventory_related_update_inventory_sources = r'inventories/\d+/update_inventory_sources/'
_inventory_scan_job_templates = r'inventories/\d+/scan_job_templates/'
_inventory_script = r'inventory_scripts/\d+/'
_inventory_script_copy = r'inventory_scripts/\d+/copy/'
_inventory_scripts = 'inventory_scripts/'