Move GcpSecretLookup to plugin_utils because may not be ansible module on the remote host

This commit is contained in:
Pavlo Bashynskiy 2021-12-30 11:43:37 +02:00
commit 2679d724c3
4 changed files with 70 additions and 58 deletions

View file

@ -69,7 +69,7 @@ _raw:
from ansible.errors import AnsibleError
from ansible.plugins.lookup import LookupBase
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import GcpSecretLookup
from ansible_collections.google.cloud.plugins.plugin_utils.gcp_utils import GcpSecretLookup
try:
from google.cloud import secretmanager

View file

@ -57,7 +57,7 @@ _raw:
from ansible.errors import AnsibleError
from ansible.plugins.lookup import LookupBase
from ansible_collections.google.cloud.plugins.module_utils.gcp_utils import GcpSecretLookup
from ansible_collections.google.cloud.plugins.plugin_utils.gcp_utils import GcpSecretLookup
try:
from google.cloud import secretmanager