Bug fixes for GCP modules (#61359)

This commit is contained in:
The Magician 2019-08-28 10:43:57 -07:00 committed by ansibot
parent 89744b72d3
commit b20bfc1048

View file

@ -158,6 +158,9 @@ def main():
fetch = fetch_resource(module, self_link(module)) fetch = fetch_resource(module, self_link(module))
changed = False changed = False
if 'instance' in module.params and 'name' in module.params['instance']:
module.params['instance']['name'] = module.params['instance']['name'].split('/')[-1]
if fetch: if fetch:
if state == 'present': if state == 'present':
if is_different(module, fetch): if is_different(module, fetch):