cedadev / jasmin-cloud

Web portal for the JASMIN Scientific cloud.
http://jasmin.ac.uk/
5 stars 3 forks source link

500 when listing machines if unable to find nat_allowed #46

Closed mkjpryor-stfc closed 6 years ago

mkjpryor-stfc commented 6 years ago

If a machine is deployed via the API and not the portal, it doesn't have the nat_allowed property.

There is a fallback to check the image for it's nat_allowed property, but if the image doesn't exist a KeyError is raised, resulting in a 500 error.

mkjpryor-stfc commented 6 years ago

Fixed at https://github.com/cedadev/jasmin-cloud/commit/603e2e640de1ed0bbb5a8c70ccffdf1ba9b88063