1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

Remove filter_by_class where it was not working

This commit is contained in:
Alan Rominger 2021-04-12 16:06:40 -04:00
parent a54aab9717
commit 33b6da4456
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -158,9 +158,6 @@ class Group(HasCreate, HasVariables, base.Base):
return payload
def create_payload(self, name='', description='', inventory=Inventory, credential=None, **kwargs):
credential = filter_by_class(
(credential, Credential),
)
self.create_and_update_dependencies(inventory, credential)
credential = self.ds.credential if credential else None
payload = self.payload(inventory=self.ds.inventory, credential=credential, name=name, description=description, **kwargs)