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:
John Westcott IV
2020-02-12 21:08:29 -05:00
committed by beeankha
parent fcc679489e
commit 6591efc160

View File

@@ -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