From bf452a52ced94d07e5669c9b197be2229a1cf75a Mon Sep 17 00:00:00 2001 From: Jake Freck Date: Tue, 6 Mar 2018 16:32:00 -0800 Subject: [PATCH] exit early if no plugins exist --- aztk/internal/cluster_data/node_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aztk/internal/cluster_data/node_data.py b/aztk/internal/cluster_data/node_data.py index 7e3921b4..1e8bd812 100644 --- a/aztk/internal/cluster_data/node_data.py +++ b/aztk/internal/cluster_data/node_data.py @@ -135,6 +135,9 @@ def _add_user_conf(self): self.zipf.writestr('user.yaml', user_conf) def _add_plugins(self): + if not self.cluster_config.plugins: + return + data = [] for plugin in self.cluster_config.plugins: for file in plugin.files: