瀏覽代碼

HUE-8758 [connectors] Little line style formatting

Romain 5 年之前
父節點
當前提交
e474cd2c7f
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      desktop/core/src/desktop/views.py

+ 7 - 2
desktop/core/src/desktop/views.py

@@ -676,9 +676,14 @@ def collect_validation_messages(conf, error_list):
     'hadoop_conf_dir': [('hadoop', 'yarn_clusters', 'default'), ('hadoop', 'yarn_clusters', 'ha')],
     'ssl_cacerts': [('beeswax', 'ssl'), ('impala', 'ssl')],
     'remote_data_dir': [('liboozie', )],
-    'shell': [()]
+    'shell': [()],
   }
-  whitelist_extras = ((sections, name) for sections, name in get_extra_values(conf) if not (name in desktop.conf.APP_BLACKLIST.get() or (name in list(cm_extras.keys()) and sections in cm_extras[name])))
+
+  whitelist_extras = (
+      (sections, name)
+      for sections, name in get_extra_values(conf)
+      if not (name in desktop.conf.APP_BLACKLIST.get() or (name in list(cm_extras.keys()) and sections in cm_extras[name]))
+  )
 
   for sections, name in whitelist_extras:
     the_section = conf