mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 19:00:27 -07:00
Update inspec container for new rubocop and terraform versions
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
34e91765c0
commit
603c558e13
2 changed files with 5 additions and 2 deletions
|
@ -1618,7 +1618,7 @@ class Kubectl(object):
|
|||
return {
|
||||
'apiVersion': 'v1',
|
||||
'clusters': [
|
||||
{'name': context, 'cluster': {'certificate-authority-data': str(self.fetch['masterAuth']['clusterCaCertificate']), 'server': endpoint}}
|
||||
{'name': context, 'cluster': {'certificate-authority-data': str(self.fetch['masterAuth']['clusterCaCertificate']), 'server': endpoint,}}
|
||||
],
|
||||
'contexts': [{'name': context, 'context': {'cluster': context, 'user': context}}],
|
||||
'current-context': context,
|
||||
|
|
|
@ -609,7 +609,10 @@ def topic_pattern(name, module):
|
|||
regex = r"projects/.*/topics/.*"
|
||||
|
||||
if not re.match(regex, name):
|
||||
formatted_params = {'project': module.params['project'], 'topic': replace_resource_dict(module.params['topic'], 'name')}
|
||||
formatted_params = {
|
||||
'project': module.params['project'],
|
||||
'topic': replace_resource_dict(module.params['topic'], 'name'),
|
||||
}
|
||||
name = "projects/{project}/topics/{topic}".format(**formatted_params)
|
||||
|
||||
return name
|
||||
|
|
Loading…
Add table
Reference in a new issue