diff options
author | Yaron Yogev <yaronyogev@gmail.com> | 2017-07-30 16:52:59 +0300 |
---|---|---|
committer | Yaron Yogev <yaronyogev@gmail.com> | 2017-07-30 16:54:10 +0300 |
commit | c22d277cf90c31b54e5b9f94cee38f7cddedcdc1 (patch) | |
tree | 37d7046d9020c07da86f2e0277b383305c43e659 /app/discover/events | |
parent | 757bea2e71f3b23831b256c855cd97cd871d7b3d (diff) |
US2801 changing all 'password' to 'pwd' on environment_configs and test data
Change-Id: I1e9615d7144a06b99ae0e04a2b2388194854e16a
Signed-off-by: Yaron Yogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/events')
-rwxr-xr-x | app/discover/events/listeners/default_listener.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/discover/events/listeners/default_listener.py b/app/discover/events/listeners/default_listener.py index a135673..9261cf8 100755 --- a/app/discover/events/listeners/default_listener.py +++ b/app/discover/events/listeners/default_listener.py @@ -189,6 +189,8 @@ class DefaultListener(ListenerBase, ConsumerMixin): inventory_collection = args["inventory"] MongoAccess.set_config_file(args["mongo_config"]) + inv = InventoryMgr() + inv.set_collections(inventory_collection) conf = Configuration(args["environments_collection"]) conf.use_env(env_name) @@ -207,15 +209,13 @@ class DefaultListener(ListenerBase, ConsumerMixin): if args["metadata_file"]: import_metadata(event_handler, event_queues, args["metadata_file"]) - inv = InventoryMgr() - inv.set_collections(inventory_collection) logger = FullLogger() logger.set_loglevel(args["loglevel"]) amqp_config = conf.get("AMQP") connect_url = 'amqp://{user}:{pwd}@{host}:{port}//' \ .format(user=amqp_config["user"], - pwd=amqp_config["password"], + pwd=amqp_config["pwd"], host=amqp_config["host"], port=amqp_config["port"]) |