From f44901d23b36194df6a6226c19298a3207c22b69 Mon Sep 17 00:00:00 2001 From: SivaMaplelabs Date: Sun, 26 Aug 2018 20:11:17 +0530 Subject: [PATCH] Address the pylint warnings --- salt/hdp/files/hdp_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/hdp/files/hdp_setup.py b/salt/hdp/files/hdp_setup.py index a620168bd..d704eb268 100644 --- a/salt/hdp/files/hdp_setup.py +++ b/salt/hdp/files/hdp_setup.py @@ -536,7 +536,7 @@ def setup_hadoop( auth = (ambari_username, ambari_password) new_nodes = get_new_nodes(nodes, cluster_name, ambari_api, auth, headers) - if len(new_nodes) == 0: + if not new_nodes: # no new nodes, reapply config to existing ones update_cluster_config(nodes, cluster_name, domain_name, ambari_api, auth, headers) elif len(new_nodes) == len([node for node in nodes if node['type'] == 'DATANODE']):