mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Fixing import of projects issue due to local_path (#11889)
This commit is contained in:
@@ -245,6 +245,10 @@ class ApiV2(base.Base):
|
|||||||
# JTs have valid options for playbook names
|
# JTs have valid options for playbook names
|
||||||
_page.wait_until_completed()
|
_page.wait_until_completed()
|
||||||
else:
|
else:
|
||||||
|
# If we are an existing project and our scm_tpye is not changing don't try and import the local_path setting
|
||||||
|
if asset['natural_key']['type'] == 'project' and 'local_path' in post_data and _page['scm_type'] == post_data['scm_type']:
|
||||||
|
del post_data['local_path']
|
||||||
|
|
||||||
_page = _page.put(post_data)
|
_page = _page.put(post_data)
|
||||||
changed = True
|
changed = True
|
||||||
except (exc.Common, AssertionError) as e:
|
except (exc.Common, AssertionError) as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user