Lint: F821 undefined name 'config'

This variable is set after importing these files by the flaskapi module.
Thus, simply set a default at the top of each file to avoid linting
errors.
This commit is contained in:
2020-11-07 13:23:34 -05:00
parent 22355bbec4
commit 6c56d45345
4 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@ from distutils.util import strtobool as dustrtobool
import daemon_lib.common as pvc_common
import daemon_lib.ceph as pvc_ceph
config = None # Set in this namespace by flaskapi
def strtobool(stringv):
if stringv is None:
return False