pubsub topic string build correctly (#261)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-05-31 11:35:59 -07:00 committed by Alex Stephen
parent 670a9b2222
commit c7000960d1

View file

@ -484,7 +484,7 @@ def decode_request(response, module):
def encode_request(request, module):
request['topic'] = '/'.join(['projects', module.params['project'], 'topics', request['topic']])
request['topic'] = '/'.join(['projects', module.params['project'], 'topics', replace_resource_dict(request['topic'], 'name')])
request['name'] = '/'.join(['projects', module.params['project'], 'subscriptions', module.params['name']])
return request