
import sys

from oslo_log import log

from kuryr import app
from kuryr.common import config
from kuryr import controllers


config.init(sys.argv[1:])
controllers.neutron_client()
controllers.check_for_neutron_ext_support()
controllers.check_for_neutron_ext_tag()
app.debug = config.CONF.debug

log.setup(config.CONF, 'Kuryr')


def start():
    port = int(config.CONF.kuryr_uri.split(':')[-1])
    app.run("0.0.0.0", port)


if __name__ == '__main__':
    start()


import sys

from oslo_log import log

from kuryr import app
from kuryr.common import config
from kuryr import controllers


config.init(sys.argv[1:])
controllers.neutron_client()
controllers.check_for_neutron_ext_support()
controllers.check_for_neutron_ext_tag()

log.setup(config.CONF, 'Kuryr')


def start():
    port = int(config.CONF.kuryr_uri.split(':')[-1])
    app.run("0.0.0.0", port)


if __name__ == '__main__':
    start()

Remove app.debug as we do not use it any more.
Remove app.debug as we do not use it any more.

Change-Id: I61497ae95dd304e60240f8ac731e63950351782f
Closes-Bug: #1583663

  
  import sys
  
  from oslo_log import log
  
  from kuryr import app
  from kuryr.common import config
  from kuryr import controllers
  
  
  config.init(sys.argv[1:])
  controllers.neutron_client()
  controllers.check_for_neutron_ext_support()
  controllers.check_for_neutron_ext_tag()
- app.debug = config.CONF.debug
  
  log.setup(config.CONF, 'Kuryr')
  
  
  def start():
      port = int(config.CONF.kuryr_uri.split(':')[-1])
      app.run("0.0.0.0", port)
  
  
  if __name__ == '__main__':
      start()
  
Remove app.debug as we do not use it any more.
## Code Before:

import sys

from oslo_log import log

from kuryr import app
from kuryr.common import config
from kuryr import controllers


config.init(sys.argv[1:])
controllers.neutron_client()
controllers.check_for_neutron_ext_support()
controllers.check_for_neutron_ext_tag()
app.debug = config.CONF.debug

log.setup(config.CONF, 'Kuryr')


def start():
    port = int(config.CONF.kuryr_uri.split(':')[-1])
    app.run("0.0.0.0", port)


if __name__ == '__main__':
    start()

## Instruction:
Remove app.debug as we do not use it any more.
## Code After:

import sys

from oslo_log import log

from kuryr import app
from kuryr.common import config
from kuryr import controllers


config.init(sys.argv[1:])
controllers.neutron_client()
controllers.check_for_neutron_ext_support()
controllers.check_for_neutron_ext_tag()

log.setup(config.CONF, 'Kuryr')


def start():
    port = int(config.CONF.kuryr_uri.split(':')[-1])
    app.run("0.0.0.0", port)


if __name__ == '__main__':
    start()
