[Fleet] Fix agent status when .fleet-agents do not exists (#149509)

This commit is contained in:
Nicolas Chaulet 2023-01-25 10:09:50 -04:00 committed by GitHub
parent 83d56cd776
commit 52f324b9ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,7 @@ export async function getAgentStatusForAgentPolicy(
},
},
},
ignore_unavailable: true,
});
} catch (error) {
logger.debug(`Error getting agent statuses: ${error}`);