From 46df6dda54f4ad62b0a71951a6091620ac6d004f Mon Sep 17 00:00:00 2001 From: Stan Lagun Date: Mon, 6 Mar 2017 15:01:29 -0800 Subject: [PATCH] Agent initialization was fixed When Murano Agent is disabled Agent was not initialized properly which caused deployment errors even if no agent calls made Change-Id: I047b512cafe71650d6a5c7edc7863f0231292a22 Closes-Bug: #1670511 Co-Authored-By: Stan Lagun --- murano/engine/system/agent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/murano/engine/system/agent.py b/murano/engine/system/agent.py index 994c77e9e..ffcc24e88 100644 --- a/murano/engine/system/agent.py +++ b/murano/engine/system/agent.py @@ -45,10 +45,8 @@ class Agent(object): if CONF.engine.disable_murano_agent: LOG.debug('Use of murano-agent is disallowed ' 'by the server configuration') - return - self._host = host - self._enabled = True + self._enabled = not CONF.engine.disable_murano_agent env = host.find_owner('io.murano.Environment') self._queue = str('e%s-h%s' % (env.id, host.id)).lower()