Skip to content

Commit ea9db19

Browse files
Extracting local variable in order to make the code more readable.
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
1 parent 4690c3d commit ea9db19

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,8 @@ public boolean executeUserRequest(final long hostId, final Event event) throws A
10091009

10101010
@Override
10111011
public boolean isAgentAttached(final long hostId) {
1012-
return findAttache(hostId) != null;
1012+
final AgentAttache agentAttache = findAttache(hostId);
1013+
return agentAttache != null;
10131014
}
10141015

10151016
protected AgentAttache createAttacheForConnect(final HostVO host, final Link link) throws ConnectionException {

0 commit comments

Comments
 (0)