mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-26 09:51:48 -05:00
Flake8 fixes.
This commit is contained in:
@@ -1251,7 +1251,7 @@ class InventorySourceOptionsSerializer(BaseSerializer):
|
||||
source = attrs.get('source', self.instance and self.instance.source or '')
|
||||
source_script = attrs.get('source_script', self.instance and self.instance.source_script or '')
|
||||
if source == 'custom':
|
||||
if not source_script is None or source_script == '':
|
||||
if source_script is None or source_script == '':
|
||||
errors['source_script'] = 'source_script must be provided'
|
||||
else:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user