mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Flake8 fixes.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
# All Rights Reserved.
|
||||
|
||||
# Python
|
||||
from collections import OrderedDict
|
||||
import inspect
|
||||
import logging
|
||||
import time
|
||||
|
||||
@@ -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