From 2ffc4b256d17ded81cd3fa93f69f639c3def5baa Mon Sep 17 00:00:00 2001 From: chris meyers Date: Fri, 6 Jul 2018 15:12:57 -0400 Subject: [PATCH] fix copy paste error --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index efb463b0c9..f031eb8611 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -196,7 +196,7 @@ class InstanceGroupMembershipMixin(object): def unattach(self, request, *args, **kwargs): response = super(InstanceGroupMembershipMixin, self).unattach(request, *args, **kwargs) - sub_id, res = self.attach_validate(request) + sub_id, res = self.unattach_validate(request) if status.is_success(response.status_code): if self.parent_model is Instance: ig_obj = get_object_or_400(self.model, pk=sub_id)