From 55de6d6b739e73561d8a5df2c6d3edbc897bc56a Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Fri, 21 Sep 2018 16:12:23 +0200 Subject: [PATCH] Fix AttributeError when creating host with group This was just a typo... It should be AnsibleGroup instead of AnsibleQuery... JIRA INFRA-548 --- app/network/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/network/views.py b/app/network/views.py index 96c1f2e..67c99db 100644 --- a/app/network/views.py +++ b/app/network/views.py @@ -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, -- GitLab