diff --git a/plugins/modules/gcp_compute_snapshot.py b/plugins/modules/gcp_compute_snapshot.py index 67a1ab9f8..8398e000d 100644 --- a/plugins/modules/gcp_compute_snapshot.py +++ b/plugins/modules/gcp_compute_snapshot.py @@ -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 = {}