Skip to content

Commit

Permalink
Fix GCP Snapshot module when using own Encryption key
Browse files Browse the repository at this point in the history
  • Loading branch information
arloginov committed Nov 18, 2021
1 parent d2c4621 commit 613d68e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/gcp_compute_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,10 @@ def resource_to_request(module):
u'name': module.params.get('name'),
u'description': module.params.get('description'),
u'storageLocations': module.params.get('storage_locations'),
u'sourceDiskEncryptionKey': SnapshotSourcediskencryptionkey(module.params.get('source_disk_encryption_key', {}),module).to_request(),
u'snapshotEncryptionKey': SnapshotSnapshotencryptionkey(module.params.get('snapshot_encryption_key', {}),module).to_request(),
u'sourceDiskEncryptionKey': SnapshotSourcediskencryptionkey(module.params.get('source_disk_encryption_key', {}),
module).to_request(),
u'snapshotEncryptionKey': SnapshotSnapshotencryptionkey(module.params.get('snapshot_encryption_key', {}),
module).to_request(),
u'labels': module.params.get('labels'),
}
return_vals = {}
Expand Down

0 comments on commit 613d68e

Please sign in to comment.