소스 검색

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