Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't create Organization with Domain assigned #636

Open
evgeni opened this issue May 22, 2019 · 1 comment
Open

can't create Organization with Domain assigned #636

evgeni opened this issue May 22, 2019 · 1 comment

Comments

@evgeni
Copy link
Member

evgeni commented May 22, 2019

>>> d
nailgun.entities.Domain(dns=None, fullname=None, id=1, name=u'kangae.example.com')
>>> a = nailgun.entities.Organization(config, name='fooa', domain=[d], description="bar")
>>> a.create_payload()
{'domain_ids': [1], 'name': 'fooa', 'description': 'bar'}
>>> a.create()
nailgun.entities.Organization(domain=[], medium=[], description=u'bar', default_content_view=nailgun.entities.ContentView(id=6), library=nailgun.entities.LifecycleEnvironment(id=3), user=[], id=4, name=u'fooa', subnet=[], title=u'fooa', …)

I would have expected domain to be [1].

@evgeni
Copy link
Member Author

evgeni commented May 22, 2019

in production.log, I see the following params passed:

Parameters: {"domain_ids"=>[1], "name"=>"fooa", "description"=>"bar", "api_version"=>"v2", "organization"=>{"name"=>"fooa", "description"=>"bar"}}

I think domain_ids should be inside organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant