diff --git a/src/vsphere_cpi/lib/cloud/vsphere/vm_creator.rb b/src/vsphere_cpi/lib/cloud/vsphere/vm_creator.rb index 394596fbb..975672ed8 100644 --- a/src/vsphere_cpi/lib/cloud/vsphere/vm_creator.rb +++ b/src/vsphere_cpi/lib/cloud/vsphere/vm_creator.rb @@ -104,7 +104,7 @@ def create(agent_id, stemcell_cid, networks, persistent_disk_cids, environment) begin created_vm.delete if created_vm rescue => ex - @logger.info("Failed to delete vm '#{vm_cid}' with message: #{ex.message}") + @logger.info("Failed to delete vm '#{vm_cid}' with message: #{ex.inspect}") end raise e end