This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
Image.create options are not passed correctly to Compute.createImage #540
Labels
api: compute
Issues related to the googleapis/nodejs-compute API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When calling Image.create with parameters
disk
andoptions
as described the call ends up in the following error:This happens due to the wrong translation of parameters happening in
@google-cloud/common/build/src/service-object.js
betweenThe proxy method is not capable of handling any additional parameters...
Parameters end up like follows:
⚠️ options = imageCreate.options wrapped as a callback ⚠️ ,
Compute.createImage(
✅ name = imageName,
✅ disk = imageCreate.disk,
callback = undefined
)
Is this a client library issue or a product issue?
This is the client library for nodejs.
Did someone already solve this?
No
Do you have a support contract?
Yes, ticket created referencing this github issue
If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details
@google-cloud/compute
version: 2.4.2Steps to reproduce
Thanks!
The text was updated successfully, but these errors were encountered: