mirror of https://github.com/apache/cloudstack.git
Extracting local variable in order to make the code more readable.
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This commit is contained in:
parent
4690c3d844
commit
ea9db195ed
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue