Skip to content
Snippets Groups Projects
Commit 55de6d6b authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Fix AttributeError when creating host with group

This was just a typo...
It should be AnsibleGroup instead of AnsibleQuery...

JIRA INFRA-548
parent 1d5f19ea
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ def create_host():
if form.validate_on_submit():
network_id = form.network_id.data
ansible_groups = [
models.AnsibleQuery.query.get(id_) for id_ in form.ansible_groups.data
models.AnsibleGroup.query.get(id_) for id_ in form.ansible_groups.data
]
host = models.Host(
name=form.name.data,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment