sparse-intern-71089
04/20/2020, 9:04 PMtall-librarian-49374
04/20/2020, 9:28 PMlimited-rainbow-51650
04/20/2020, 9:30 PMpulumi.runtime.setMocks({
newResource: function(type: string, name: string, inputs: any): {id: string, state: any} {
console.log(`newResource(${type}, ${name}, ${util.inspect(inputs)})`)
switch (type) {
...
I moved the log statement to the beginning of newResource
and it is called only once:
newResource(cumundi:network/gcp:Network, production, {})
limited-rainbow-51650
04/20/2020, 9:33 PMlimited-rainbow-51650
04/20/2020, 9:43 PMtall-librarian-49374
04/20/2020, 9:52 PMtall-librarian-49374
04/20/2020, 9:53 PM