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:
parent
22355bbec4
commit
6c56d45345
|
@ -28,6 +28,8 @@ from distutils.util import strtobool as dustrtobool
|
||||||
import daemon_lib.common as pvc_common
|
import daemon_lib.common as pvc_common
|
||||||
import daemon_lib.ceph as pvc_ceph
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
|
config = None # Set in this namespace by flaskapi
|
||||||
|
|
||||||
def strtobool(stringv):
|
def strtobool(stringv):
|
||||||
if stringv is None:
|
if stringv is None:
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -34,6 +34,8 @@ import daemon_lib.vm as pvc_vm
|
||||||
import daemon_lib.network as pvc_network
|
import daemon_lib.network as pvc_network
|
||||||
import daemon_lib.ceph as pvc_ceph
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
|
config = None # Set in this namespace by flaskapi
|
||||||
|
|
||||||
def strtobool(stringv):
|
def strtobool(stringv):
|
||||||
if stringv is None:
|
if stringv is None:
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -36,6 +36,8 @@ import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
import pvcapid.provisioner as provisioner
|
import pvcapid.provisioner as provisioner
|
||||||
|
|
||||||
|
config = None # Set in this namespace by flaskapi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Common functions
|
# Common functions
|
||||||
#
|
#
|
||||||
|
|
|
@ -37,6 +37,8 @@ import pvcapid.libvirt_schema as libvirt_schema
|
||||||
|
|
||||||
from pvcapid.ova import list_ova
|
from pvcapid.ova import list_ova
|
||||||
|
|
||||||
|
config = None # Set in this namespace by flaskapi
|
||||||
|
|
||||||
def strtobool(stringv):
|
def strtobool(stringv):
|
||||||
if stringv is None:
|
if stringv is None:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue