mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-07 11:20:28 -07:00
Merge pull request #114 from modular-magician/codegen-pr-2826
Update inspec container for new rubocop and terraform versions
This commit is contained in:
commit
38c1061328
2 changed files with 5 additions and 2 deletions
|
@ -1618,7 +1618,7 @@ class Kubectl(object):
|
||||||
return {
|
return {
|
||||||
'apiVersion': 'v1',
|
'apiVersion': 'v1',
|
||||||
'clusters': [
|
'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}}],
|
'contexts': [{'name': context, 'context': {'cluster': context, 'user': context}}],
|
||||||
'current-context': context,
|
'current-context': context,
|
||||||
|
|
|
@ -609,7 +609,10 @@ def topic_pattern(name, module):
|
||||||
regex = r"projects/.*/topics/.*"
|
regex = r"projects/.*/topics/.*"
|
||||||
|
|
||||||
if not re.match(regex, name):
|
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)
|
name = "projects/{project}/topics/{topic}".format(**formatted_params)
|
||||||
|
|
||||||
return name
|
return name
|
||||||
|
|
Loading…
Add table
Reference in a new issue