mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Fix undefined variables, basestring usage, and some associated python3 issues
This commit is contained in:
parent
9f7b0dfc30
commit
225fa5d092
84 changed files with 652 additions and 963 deletions
|
@ -139,6 +139,7 @@ except ImportError as e:
|
|||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.gcp import check_min_pkg_version, get_google_cloud_credentials
|
||||
from ansible.module_utils.six import string_types
|
||||
|
||||
CLOUD_CLIENT = 'google-cloud-spanner'
|
||||
CLOUD_CLIENT_MINIMUM_VERSION = '0.23.0'
|
||||
|
@ -169,7 +170,7 @@ def instance_update(instance):
|
|||
errmsg = 'node_count must be an integer %s (%s)' % (
|
||||
instance.node_count, type(instance.node_count))
|
||||
if instance.display_name and not isinstance(instance.display_name,
|
||||
basestring):
|
||||
string_types):
|
||||
errmsg = 'instance_display_name must be an string %s (%s)' % (
|
||||
instance.display_name, type(instance.display_name))
|
||||
if errmsg:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue