mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
flake8
This commit is contained in:
@@ -1519,7 +1519,7 @@ class JobRelaunchSerializer(JobSerializer):
|
|||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
obj = self.context.get('obj')
|
obj = self.context.get('obj')
|
||||||
if not obj.credential or obj.credential.active == False:
|
if not obj.credential or obj.credential.active is False:
|
||||||
raise serializers.ValidationError(dict(credential=["Credential not found or deleted."]))
|
raise serializers.ValidationError(dict(credential=["Credential not found or deleted."]))
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user