mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45196 from rallytime/fix-45182
Don't log in the __virtual__() space in gcp_addon module
This commit is contained in:
commit
fc0046bf96
1 changed files with 8 additions and 2 deletions
|
@ -6,6 +6,8 @@ and the set of routes for a particular VM is called its routing table.
|
|||
For each packet leaving a virtual machine, the system searches that machine's
|
||||
routing table for a single best matching route.
|
||||
|
||||
.. versionadded:: Oxygen
|
||||
|
||||
This module will create a route to send traffic destined to the Internet
|
||||
through your gateway instance.
|
||||
|
||||
|
@ -13,9 +15,13 @@ through your gateway instance.
|
|||
:maturity: new
|
||||
:depends: google-api-python-client
|
||||
:platform: Linux
|
||||
|
||||
'''
|
||||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
|
@ -33,8 +39,8 @@ def __virtual__():
|
|||
Check for googleapiclient api
|
||||
'''
|
||||
if HAS_LIB is False:
|
||||
log.info("Required google API's(googleapiclient, oauth2client) not found")
|
||||
return (HAS_LIB, "Required google API's(googleapiclient, oauth2client) not found")
|
||||
return False, 'Required dependencies \'googleapiclient\' and/or \'oauth2client\' were not found.'
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def _get_network(project_id, network_name, service):
|
||||
|
|
Loading…
Add table
Reference in a new issue