14844: Azure fixes
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 28 Feb 2019 20:47:59 +0000 (15:47 -0500)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 28 Feb 2019 20:47:59 +0000 (15:47 -0500)
commit8c4fb97b1d34b5f8fc50d239698a08c35a63dac3
treeed1e0e337afc49fe9c4bac94f2077e9bb0412af0
parent926dcfeab145e7c714c5531fa044bac6f0f0f992
14844: Azure fixes

* If PrivateIPAddress somehow isn't defined, return empty
  string (don't panic)

* If VM create fails, attempt to immediately clean the VHD and NIC
  corresponding to that VM (if it doesn't work, cleanup processes
  should still get around to it.)

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>
lib/cloud/azure/azure.go
lib/cloud/azure/azure_test.go