فهرست منبع

Revert Fluentd Facts

Diego Castro 9 سال پیش
والد
کامیت
669a91dc9d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      roles/openshift_facts/library/openshift_facts.py

+ 2 - 1
roles/openshift_facts/library/openshift_facts.py

@@ -317,8 +317,9 @@ def set_fluentd_facts_if_unset(facts):
 
     """
     if 'common' in facts:
+        deployment_type = facts['common']['deployment_type']
         if 'use_fluentd' not in facts['common']:
-            use_fluentd = False
+            use_fluentd = True if deployment_type == 'online' else False    
             facts['common']['use_fluentd'] = use_fluentd
     return facts