From 6591efc160cbed71feaf28b5110e80c8bbc98a54 Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Wed, 12 Feb 2020 21:08:29 -0500 Subject: [PATCH] Fixed issue that caused warning message to always display Because scm_update_cache_timeout has a default and thus will always be != None --- awx_collection/plugins/modules/tower_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/tower_project.py b/awx_collection/plugins/modules/tower_project.py index 6bb13dc3d2..6db62f3292 100644 --- a/awx_collection/plugins/modules/tower_project.py +++ b/awx_collection/plugins/modules/tower_project.py @@ -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