utils: make uuid parsing more lenient #137

Merged
merged 1 commit into from Jun 4, 2015

Conversation

Projects
None yet
4 participants
Owner

rogpeppe commented Jun 4, 2015

This brings the UUID checking into line with the checking
done by UUID in juju/schema. There's no particular reason
to disallow other RFC4122 UUIDs. Once parsed
we treat the bytes as an opaque block, so whether it's
actually a version 4 UUID is immaterial.

(Review request: http://reviews.vapour.ws/r/1856/)

Contributor

themue commented Jun 4, 2015

LGTM, even if it allows UUIDs not following the RfC. That's a different topic, like discussed on irc.

Member

frankban commented Jun 4, 2015

👍 thank you!

Owner

rogpeppe commented Jun 4, 2015

$$merge$$

Contributor

jujubot commented Jun 4, 2015

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-utils

jujubot added a commit that referenced this pull request Jun 4, 2015

Merge pull request #137 from rogpeppe/010-lenient-uuid-parsing
utils: make uuid parsing more lenient

This brings the UUID checking into line with the checking
done by UUID in juju/schema. There's no particular reason
to disallow other RFC4122 UUIDs. Once parsed
we treat the bytes as an opaque block, so whether it's
actually a version 4 UUID is immaterial.


(Review request: http://reviews.vapour.ws/r/1856/)

@jujubot jujubot merged commit 16d187c into juju:master Jun 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment