mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
PEP 8 W291 whitespace cleanup.
This commit is contained in:
@@ -375,10 +375,10 @@ class AzureRMModuleBase(object):
|
||||
'''
|
||||
dependencies = dict()
|
||||
if enum_modules:
|
||||
for module_name in enum_modules:
|
||||
for module_name in enum_modules:
|
||||
mod = importlib.import_module(module_name)
|
||||
for mod_class_name, mod_class_obj in inspect.getmembers(mod, predicate=inspect.isclass):
|
||||
dependencies[mod_class_name] = mod_class_obj
|
||||
dependencies[mod_class_name] = mod_class_obj
|
||||
self.log("dependencies: ");
|
||||
self.log(str(dependencies))
|
||||
serializer = Serializer(classes=dependencies)
|
||||
|
||||
@@ -209,7 +209,7 @@ def _get_gcp_credentials(module, require_valid_json=True, check_libcloud=False):
|
||||
'project_id': project_id}
|
||||
|
||||
def _validate_credentials_file(module, credentials_file, require_valid_json=True, check_libcloud=False):
|
||||
"""
|
||||
"""
|
||||
Check for valid credentials file.
|
||||
|
||||
Optionally check for JSON format and if libcloud supports JSON.
|
||||
@@ -276,7 +276,7 @@ def gcp_connect(module, provider, get_driver, user_agent_product, user_agent_ver
|
||||
|
||||
|
||||
def get_google_cloud_credentials(module, scopes=[]):
|
||||
"""
|
||||
"""
|
||||
Get credentials object for use with Google Cloud client.
|
||||
|
||||
To connect via libcloud, don't use this function, use gcp_connect instead. For
|
||||
@@ -297,7 +297,7 @@ def get_google_cloud_credentials(module, scopes=[]):
|
||||
:param scopes: list of scopes
|
||||
:type module: ``list`` of URIs
|
||||
|
||||
:returns: A tuple containing (google authorized) credentials object and
|
||||
:returns: A tuple containing (google authorized) credentials object and
|
||||
params dict {'service_account_email': '...', 'credentials_file': '...', 'project_id': ...}
|
||||
:rtype: ``tuple``
|
||||
"""
|
||||
@@ -326,7 +326,7 @@ def get_google_api_auth(module, scopes=[], user_agent_product='ansible-python-ap
|
||||
"""
|
||||
Authentication for use with google-python-api-client.
|
||||
|
||||
Function calls get_google_cloud_credentials, which attempts to assemble the credentials
|
||||
Function calls get_google_cloud_credentials, which attempts to assemble the credentials
|
||||
from various locations. Next it attempts to authenticate with Google.
|
||||
|
||||
This function returns an httplib2 (compatible) object that can be provided to the Google Python API client.
|
||||
|
||||
Reference in New Issue
Block a user