Advertisement
gangil

Untitled

Sep 14th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1.  
  2. def init_cfg():
  3. cli_opts = [
  4. cfg.StrOpt('neutron_conf',
  5. default='/etc/neutron/neutron.conf',
  6. help='Neutron configuration file'))
  7. ]
  8.  
  9. cfg.CONF.register_cli_opts(cli_opts)
  10. cfg.CONF(args=sys.argv[1:],
  11. project=Constants.PROJECT,
  12. prog=Constants.PROGRAM,
  13. version=Constants.VERSION,
  14. usage=Constants.USAGE,
  15. default_config_files=[cfg.CONF.neutron_conf])
  16.  
  17. LOG.info("Config initialized")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement