diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-05 09:56:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-05 09:56:44 +0300 |
commit | 5f1e67a367f3a440b9e6bb7e347895601cd61153 (patch) | |
tree | 61d5683a0fa54ea4824d9c29854a8f26219b6fcc | |
parent | 72da163b5900700cd9cc5cd78a4941249618ff7d (diff) | |
download | vmdb2-5f1e67a367f3a440b9e6bb7e347895601cd61153.tar.gz |
refactor(vmdb/app.py): make code to create&enable plugins clearer
-rw-r--r-- | vmdb/app.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vmdb/app.py b/vmdb/app.py index dac62b7..3865bd2 100644 --- a/vmdb/app.py +++ b/vmdb/app.py @@ -38,7 +38,8 @@ class Vmdb2(cliapp.Application): def setup(self): self.step_runners = vmdb.StepRunnerList() plugindir = os.path.join(os.path.dirname(vmdb.__file__), "plugins") - plugins = [klass(self).enable() for klass in vmdb.find_plugins(plugindir, "Plugin")] + for klass in vmdb.find_plugins(plugindir, "Plugin"): + klass(self).enable() def process_args(self, args): if len(args) != 1: |