mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 06:15:04 -02:30
flake8
This commit is contained in:
@@ -1519,7 +1519,7 @@ class JobRelaunchSerializer(JobSerializer):
|
||||
|
||||
def validate(self, attrs):
|
||||
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."]))
|
||||
return attrs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user