Sorry! I personally don't find that fix *that* ugly. Yes, the line is long but it makes it clear what is what and why, at least for me. Sure, this probably could be done slightly different like using a variable instead, but to me personally all those solutions seemed ugly in some sense.
It's annoying that because of how the default value validation has been implemented, we can't really have one satisfying way of doing it across different voluptuous versions. Maybe there is some other, smarter way to have our enum be able to be 'fed' to the validation in cases of when it's before and after value conversion, but I'd have to take a deeper look on how voluptuous works. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1795610 Title: New voluptuous breaks ubuntu-image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-image/+bug/1795610/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
