generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some sanity (not yet) errors (#18)
- Loading branch information
1 parent
a344db0
commit bcc2cc4
Showing
2 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,6 @@ | |
from __future__ import (absolute_import, division, print_function) | ||
__metaclass__ = type | ||
|
||
from ansible.errors import AnsibleLookupError | ||
from ansible.plugins.lookup import LookupBase | ||
from ansible.module_utils._text import to_native | ||
from ansible_collections.community.sops.plugins.module_utils.sops import Sops, SopsError | ||
|
||
from ansible.utils.display import Display | ||
display = Display() | ||
|
||
|
||
DOCUMENTATION = """ | ||
lookup: sops | ||
author: Edoardo Tenani (@endorama) <[email protected]> | ||
|
@@ -67,8 +58,18 @@ | |
RETURN = """ | ||
_raw: | ||
description: decrypted file content | ||
type: list | ||
elements: str | ||
""" | ||
|
||
from ansible.errors import AnsibleLookupError | ||
from ansible.plugins.lookup import LookupBase | ||
from ansible.module_utils._text import to_native | ||
from ansible_collections.community.sops.plugins.module_utils.sops import Sops, SopsError | ||
|
||
from ansible.utils.display import Display | ||
display = Display() | ||
|
||
|
||
class LookupModule(LookupBase): | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,21 +21,8 @@ | |
from __future__ import (absolute_import, division, print_function) | ||
__metaclass__ = type | ||
|
||
import os | ||
from ansible.errors import AnsibleParserError | ||
from ansible.module_utils._text import to_bytes, to_native, to_text | ||
from ansible.plugins.vars import BaseVarsPlugin | ||
from ansible.inventory.host import Host | ||
from ansible.inventory.group import Group | ||
from ansible.utils.vars import combine_vars | ||
from ansible_collections.community.sops.plugins.module_utils.sops import Sops, SopsError | ||
|
||
from ansible.utils.display import Display | ||
display = Display() | ||
|
||
|
||
DOCUMENTATION = ''' | ||
vars: sops_vars | ||
vars: sops | ||
author: Edoardo Tenani (@endorama) <[email protected]> | ||
short_description: Loading sops-encrypted vars files | ||
description: | ||
|
@@ -52,6 +39,18 @@ | |
type: list | ||
''' | ||
|
||
import os | ||
from ansible.errors import AnsibleParserError | ||
from ansible.module_utils._text import to_bytes, to_native, to_text | ||
from ansible.plugins.vars import BaseVarsPlugin | ||
from ansible.inventory.host import Host | ||
from ansible.inventory.group import Group | ||
from ansible.utils.vars import combine_vars | ||
from ansible_collections.community.sops.plugins.module_utils.sops import Sops, SopsError | ||
|
||
from ansible.utils.display import Display | ||
display = Display() | ||
|
||
|
||
FOUND = {} | ||
DECRYPTED = {} | ||
|