turbinia icon indicating copy to clipboard operation
turbinia copied to clipboard

Local installation failed when CLOUD_PROVIDER is set None.

Open roshanmaskey opened this issue 2 years ago • 1 comments

The turbinia_config_tmpl.py says to use None for local installation.

# Which Cloud provider to use. Valid options are None and 'GCP'. Use 'GCP'
# for GCP or hybrid installations, and None for local installations.
CLOUD_PROVIDER = 'GCP'

However, turbinia/config/__init__.py specifies CLOUD_PROVIDER is required and None raises exception.

line#43

# Required config vars
REQUIRED_VARS = [
    # Turbinia Config
    'INSTANCE_ID',
    'CLOUD_PROVIDER',

line#210

    if var in REQUIRED_VARS and getattr(_config, var) is None:
      raise TurbiniaException(
          'Config attribute {0:s}:{1:s} is not set'.format(
              _config.configSource, var))

roshanmaskey avatar Sep 09 '22 19:09 roshanmaskey

ty roshan i can fix, in meantime, you can put empty '' instead of None and that should work

wajihyassine avatar Sep 09 '22 21:09 wajihyassine