This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new ca9d5155ba AIRAVATA-3694 Fix comparison when var is a string
ca9d5155ba is described below

commit ca9d5155baa101fa57fe9c3ed9a13a9d5673ab2f
Author: Marcus Christie <[email protected]>
AuthorDate: Tue Jun 6 13:44:23 2023 -0400

    AIRAVATA-3694 Fix comparison when var is a string
---
 dev-tools/ansible/roles/django/templates/settings_local.py.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tools/ansible/roles/django/templates/settings_local.py.j2 
b/dev-tools/ansible/roles/django/templates/settings_local.py.j2
index b442398e45..97d65b2acf 100644
--- a/dev-tools/ansible/roles/django/templates/settings_local.py.j2
+++ b/dev-tools/ansible/roles/django/templates/settings_local.py.j2
@@ -184,7 +184,7 @@ PGA_URL = "{{ django_pga_url }}"
 GOOGLE_ANALYTICS_TRACKING_ID = "{{ django_google_analytics_tracking_id }}"
 {% endif %}
 
-{% if django_user_data_archive_max_age_days and 
django_user_data_archive_max_age_days > 0 %}
+{% if django_user_data_archive_max_age_days and 
django_user_data_archive_max_age_days|int > 0 %}
 GATEWAY_USER_DATA_ARCHIVE_MAX_AGE_DAYS = {{ 
django_user_data_archive_max_age_days }}
 {% endif %}
 GATEWAY_USER_DATA_ARCHIVE_DIRECTORY = "{{ django_user_data_archive_directory 
}}"

Reply via email to