diff --git a/libs/parse_ansible.py b/libs/parse_ansible.py index 025b36e..f721aa1 100755 --- a/libs/parse_ansible.py +++ b/libs/parse_ansible.py @@ -41,7 +41,10 @@ def get_module_list(): if use_old_loader: doc_cli.find_modules(path) else: - founds = doc_cli.find_plugins(path, 'module') + try: + founds = doc_cli.find_plugins(path, 'module') + except TypeError: + founds = doc_cli.find_plugins(path, 'plugins', 'module') if founds: doc_cli.plugin_list.update(founds) module_list = ( diff --git a/package.json b/package.json index 0201f01..a556ca9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "autocomplete-ansible", "main": "./libs/main", - "version": "0.1.25", + "version": "0.1.26", "description": "An autocomplete+ provider for Ansible Playbook", "keywords": [], "repository": "https://github.com/h-hirokawa/atom-autocomplete-ansible",