← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1164482] Re: create domain does not match the documentation

 

This was fixed by Brant at some point in the past month or so.

** Changed in: keystone
   Importance: Undecided => Medium

** Changed in: keystone
       Status: New => Fix Released

** Changed in: keystone
     Assignee: (unassigned) => Brant Knudson (blk-u)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1164482

Title:
  create domain does not match the documentation

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  in the documentation api from here :

  https://github.com/openstack/identity-api/blob/master/openstack-
  identity-api/src/markdown/identity-api-v3.md#domains

  domains are supposed to be created like this :

  {
      "description": "--optional--",
      "enabled": --optional--,
      "name": "..."
  }

  trying it does result a 400:

  <pre>
  /usr/local/bin/python -E "/Users/chmouel/GIT/gist/ks3/domain.py"
  json sent to /v3/domains: {"enabled": true, "description": "myowndomain", "name": "test"}
  <Response [400]>
  {"error": {"message": "create_domain() got an unexpected keyword argument 'enabled'", "code": 400, "title": "Bad Request"}}

  Compilation finished at Thu Apr  4 14:44:36
  </pre>
   
  from reading the code this seems to work:

  <pre>
  json sent to /v3/domains: {"domain": {"name": "test2"}}
  <Response [201]>
  {"domain": {"enabled": true, "id": "6521707e795e424f81f7b1e58c679dbb", "links": {"self": "http://localhost:5000/v3/domains/6521707e795e424f81f7b1e58c679dbb"}, "name": "test2"}}
  </pre> 

  so who need to be fixed doc or imp?

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1164482/+subscriptions