Guest User

nova-novncproxy

a guest
Jun 3rd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.92 KB | None | 0 0
  1. 28a29,30
  2. > from oslo.config import cfg
  3. >
  4. 32c34
  5. < from nova import flags
  6. ---
  7. > from nova import config
  8. 34d35
  9. < from nova.openstack.common import cfg
  10. 67,68c68,69
  11. < FLAGS = flags.FLAGS
  12. < FLAGS.register_cli_opts(opts)
  13. ---
  14. > CONF = cfg.CONF
  15. > CONF.register_cli_opts(opts)
  16. 73c74
  17. <     rpc.register_opts(FLAGS)
  18. ---
  19. >     rpc.register_opts(CONF)
  20. 131,132c132,133
  21. <     if FLAGS.ssl_only and not os.path.exists(FLAGS.cert):
  22. <         parser.error("SSL only and %s not found" % FLAGS.cert)
  23. ---
  24. >     if CONF.ssl_only and not os.path.exists(CONF.cert):
  25. >         parser.error("SSL only and %s not found" % CONF.cert)
  26. 134,135c135,136
  27. <     # Setup flags
  28. <     flags.parse_args(sys.argv)
  29. ---
  30. >     # Setup cfg
  31. >     config.parse_args(sys.argv)
  32. 138,147c139,148
  33. <     server = NovaWebSocketProxy(listen_host=FLAGS.novncproxy_host,
  34. <                                 listen_port=FLAGS.novncproxy_port,
  35. <                                 source_is_ipv6=FLAGS.source_is_ipv6,
  36. <                                 verbose=FLAGS.verbose,
  37. <                                 cert=FLAGS.cert,
  38. <                                 key=FLAGS.key,
  39. <                                 ssl_only=FLAGS.ssl_only,
  40. <                                 daemon=FLAGS.daemon,
  41. <                                 record=FLAGS.record,
  42. <                                 web=FLAGS.web,
  43. ---
  44. >     server = NovaWebSocketProxy(listen_host=CONF.novncproxy_host,
  45. >                                 listen_port=CONF.novncproxy_port,
  46. >                                 source_is_ipv6=CONF.source_is_ipv6,
  47. >                                 verbose=CONF.verbose,
  48. >                                 cert=CONF.cert,
  49. >                                 key=CONF.key,
  50. >                                 ssl_only=CONF.ssl_only,
  51. >                                 daemon=CONF.daemon,
  52. >                                 record=CONF.record,
  53. >                                 web=CONF.web,
Advertisement
Add Comment
Please, Sign In to add comment