try: b_domain_id = cls.convert_uuid_hex_to_bytes(domain_id)
except ValueError:
# the default domain ID is configurable, and probably isn't a UUID
if domain_id == CONF.identity.default_domain_id: b_domain_id = domain_id
else: raise
Note explicit catch of ValueError to deal with configurable default domain ID and not being a UUID.
Snip from assemble method:
try:
b_ domain_ id = cls.convert_ uuid_hex_ to_bytes( domain_ id) default_ domain_ id:
b_domain_ id = domain_id
raise
except ValueError:
# the default domain ID is configurable, and probably isn't a UUID
if domain_id == CONF.identity.
else:
Note explicit catch of ValueError to deal with configurable default domain ID and not being a UUID.