mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Fixed issue that caused warning message to always display
Because scm_update_cache_timeout has a default and thus will always be != None
This commit is contained in:
committed by
beeankha
parent
fcc679489e
commit
6591efc160
@@ -255,7 +255,7 @@ def main():
|
||||
if scm_type == '':
|
||||
project_fields['local_path'] = local_path
|
||||
|
||||
if state != 'absent' and (scm_update_cache_timeout is not None and scm_update_on_launch is not True):
|
||||
if state != 'absent' and (scm_update_cache_timeout != 0 and scm_update_on_launch is not True):
|
||||
module.warn('scm_update_cache_timeout will be ignored since scm_update_on_launch was not set to true')
|
||||
|
||||
# If we are doing a not manual project, register our on_change method
|
||||
|
||||
Reference in New Issue
Block a user