
from oslo_config import cfg

from poppy import bootstrap


conf = cfg.CONF
conf(project='poppy', prog='poppy', args=[])


app = bootstrap.Bootstrap(conf).transport.app

import os

from oslo_config import cfg

from poppy import bootstrap


conf = cfg.CONF
conf(project='poppy', prog='poppy', args=[])
if os.environ.get('POPPY_CONFIG_FILE') is not None:
    conf.default_config_files.insert(os.environ.get('POPPY_CONFIG_FILE'), 0)

app = bootstrap.Bootstrap(conf).transport.app

Add extra config file env variable option
Add extra config file env variable option

Change-Id: Ic88b442098eff0c2e3a8cc3cb527fa3d29f085ea

+ import os
  
  from oslo_config import cfg
  
  from poppy import bootstrap
  
  
  conf = cfg.CONF
  conf(project='poppy', prog='poppy', args=[])
- 
+ if os.environ.get('POPPY_CONFIG_FILE') is not None:
+     conf.default_config_files.insert(os.environ.get('POPPY_CONFIG_FILE'), 0)
  
  app = bootstrap.Bootstrap(conf).transport.app
  
Add extra config file env variable option
## Code Before:

from oslo_config import cfg

from poppy import bootstrap


conf = cfg.CONF
conf(project='poppy', prog='poppy', args=[])


app = bootstrap.Bootstrap(conf).transport.app

## Instruction:
Add extra config file env variable option
## Code After:
import os

from oslo_config import cfg

from poppy import bootstrap


conf = cfg.CONF
conf(project='poppy', prog='poppy', args=[])
if os.environ.get('POPPY_CONFIG_FILE') is not None:
    conf.default_config_files.insert(os.environ.get('POPPY_CONFIG_FILE'), 0)

app = bootstrap.Bootstrap(conf).transport.app
