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:
parent
a54aab9717
commit
33b6da4456
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user