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:
@ -34,6 +34,8 @@ import daemon_lib.vm as pvc_vm
|
||||
import daemon_lib.network as pvc_network
|
||||
import daemon_lib.ceph as pvc_ceph
|
||||
|
||||
config = None # Set in this namespace by flaskapi
|
||||
|
||||
def strtobool(stringv):
|
||||
if stringv is None:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user