deltacloud icon indicating copy to clipboard operation
deltacloud copied to clipboard

vSphere:Fixed json output error in empty public_addresses

Open ikd-work opened this issue 14 years ago • 0 comments

At the specific situation which vm has Network Interface and vmware-tools installed the vm and network interface is down in the vm, public_addresses response is below.(vSphereESXi5.0)

:public_addresses=>[{:address=>{:type=>:unavailable, :value=>}}]

A json error occurs when execute "to_json" at this response.

So, I changed "vsphere_driver.rb" to get empty value.

Please Check this change. And, Please merge trunk branch.

Thanks. Daisuke Ikeda (TIS Inc.)

ikd-work avatar Jan 18 '12 04:01 ikd-work