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