This is an automated email from the ASF dual-hosted git repository. Pearl1594 pushed a commit to branch store-lastsuccessful-MS in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit ab30cf815cdf7fc3b1d7d3ddf03937f5d9a980df Author: mprokopchuk <[email protected]> AuthorDate: Thu Jul 30 20:37:32 2026 -0700 Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> --- agent/src/main/java/com/cloud/agent/AgentShell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/src/main/java/com/cloud/agent/AgentShell.java b/agent/src/main/java/com/cloud/agent/AgentShell.java index 83e70540441..be3bed0fe61 100644 --- a/agent/src/main/java/com/cloud/agent/AgentShell.java +++ b/agent/src/main/java/com/cloud/agent/AgentShell.java @@ -496,6 +496,9 @@ public class AgentShell implements IAgentShell, Daemon { * @return the hostname or IP address of the last successfully setup host, or null if none exists */ private String getLastSetupCompletedHost() { + if (_storage != null) { + return getPersistentProperty(null, AgentProperties.LAST_SETUP_COMPLETED_HOST.getName()); + } return AgentPropertiesFileHandler.getPropertyValue(AgentProperties.LAST_SETUP_COMPLETED_HOST); }
