cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [13/15] git commit: updated refs/heads/master to 527d6ee
Date Mon, 29 Jun 2015 08:43:51 GMT
Extracting local variable in order to make the code more readable.

Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ea9db195
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ea9db195
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ea9db195

Branch: refs/heads/master
Commit: ea9db195eda88ab08ad907d55862c7fcea2c0fae
Parents: 4690c3d
Author: wilderrodrigues <wrodrigues@schubergphilis.com>
Authored: Thu Jun 25 11:04:58 2015 +0200
Committer: wilderrodrigues <wrodrigues@schubergphilis.com>
Committed: Mon Jun 29 09:59:11 2015 +0200

----------------------------------------------------------------------
 .../src/com/cloud/agent/manager/AgentManagerImpl.java             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ea9db195/engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java
----------------------------------------------------------------------
diff --git a/engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java b/engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java
index eff1f01..64aaf48 100644
--- a/engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java
+++ b/engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java
@@ -1009,7 +1009,8 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager,
Handl
 
     @Override
     public boolean isAgentAttached(final long hostId) {
-        return findAttache(hostId) != null;
+        final AgentAttache agentAttache = findAttache(hostId);
+        return agentAttache != null;
     }
 
     protected AgentAttache createAttacheForConnect(final HostVO host, final Link link) throws
ConnectionException {


Mime
View raw message