neoave / mrack

Multicloud use-case based multihost async provisioner for CIs and testing during development
Apache License 2.0
11 stars 14 forks source link

fix(OpenStack/Beaker): validation fails with exception when image/distro not found #243

Closed Tiboris closed 1 year ago

Tiboris commented 1 year ago

fix(OpenStack): Add exception parameter when validation fails

Adding second parameter to ValidationError exception gets rid of mrack exiting with exception.

fix(Beaker): rerurn common dictionary when validation fails

when Beaker distro/image is not recognized by beakerhub
mrack failed with exception as newer code expects
dictionary error object.

fix: Use get method when host error object is a dictionary

This makes sure to not throw an exception when host.error
is not a dictionary and we can not use .get() method