Skip to content

Commit ab30cf8

Browse files
mprokopchukCopilot
authored andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f064f5d commit ab30cf8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

agent/src/main/java/com/cloud/agent/AgentShell.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ public void setLastSetupCompletedHost(String host) {
496496
* @return the hostname or IP address of the last successfully setup host, or null if none exists
497497
*/
498498
private String getLastSetupCompletedHost() {
499+
if (_storage != null) {
500+
return getPersistentProperty(null, AgentProperties.LAST_SETUP_COMPLETED_HOST.getName());
501+
}
499502
return AgentPropertiesFileHandler.getPropertyValue(AgentProperties.LAST_SETUP_COMPLETED_HOST);
500503
}
501504

0 commit comments

Comments
 (0)