mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 15:57:52 -02:30
flake8
This commit is contained in:
@@ -1254,8 +1254,8 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions):
|
|||||||
if not super(InventoryUpdate, self).can_start:
|
if not super(InventoryUpdate, self).can_start:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if self.source != 'custom' \
|
if (self.source != 'custom'
|
||||||
and not (self.credential and self.credential.active):
|
and not (self.credential and self.credential.active)):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user