Fixed KeyError due to deletionProtection (#2762) (#163)

Signed-off-by: Satyajit Bulage <sbulage@redhat.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2020-03-01 18:21:04 -08:00 committed by GitHub
parent ed12517036
commit 1508e9ab2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1488,7 +1488,7 @@ def deletion_protection_update(module, request, response):
''.join(
[
"https://www.googleapis.com/compute/v1/",
"projects/{project}/zones/{zone}/instances/{name}/setDeletionProtection?deletionProtection={deletionProtection}",
"projects/{project}/zones/{zone}/instances/{name}/setDeletionProtection?deletionProtection={deletion_protection}",
]
).format(**module.params),
{},