From ddb0249b23f82bb42a50527fae40ef867b4d67b8 Mon Sep 17 00:00:00 2001 From: dineshbhor Date: Wed, 30 May 2018 17:57:16 -0700 Subject: [PATCH] Fix module has no attribute 'parse_args' Change: I469d4b6df49ad3489722feae0b795c20a6a3913b has added support of deploying masakari with uwsgi. In this change the import in masakari/cmd/api.py module is changed from *from masakari import config* to *from masakari import config as api_config* but the respective occurence of its use is not replaced with the new module name i.e., api_config. This patch fixes this issue by correcting the module name from *config* to *api_config*. Change-Id: Ib385a3599f2aafe5092f714fd5b761051c099069 Closes-Bug: #1774300 --- masakari/cmd/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masakari/cmd/api.py b/masakari/cmd/api.py index e05e2961..7f0b014a 100644 --- a/masakari/cmd/api.py +++ b/masakari/cmd/api.py @@ -47,7 +47,7 @@ def _get_config_files(env=None): def main(): - config.parse_args(sys.argv) + api_config.parse_args(sys.argv) logging.setup(CONF, "masakari") log = logging.getLogger(__name__) objects.register_all()