os-service-types/os_service_types
Monty Taylor 2441006a71
Add flag for returning unofficial types
In consuming code in openstacksdk and keystoneauth, the pattern:

  if stm.is_official(service_type):
      return stm.get_service_type(service_type)
  return service_type

Gets used in several places. Let's provide a way to say that with a
flag:

  return std.get_service_type(service_type, permissive=True)

which says "get me the official service_type for this, but if it's not
something I know about, give me the thing the user asked for.

Change-Id: Ib8fb14a88ecc690da67967b7e906deb7d923f869
2018-07-26 08:36:03 -04:00
..
data Updated from OpenStack Service Type Authority 2018-07-24 15:17:59 +00:00
tests Add flag for returning unofficial types 2018-07-26 08:36:03 -04:00
__init__.py Add factory helper function which returns a singleton 2018-01-12 11:20:50 -06:00
exc.py Add flag for returning unofficial types 2018-07-26 08:36:03 -04:00
service_types.py Add flag for returning unofficial types 2018-07-26 08:36:03 -04:00