use of de.cinovo.cloudconductor.agent.executors.InstalledPackages in project cloudconductor-agent-redhat by cinovo.
the class PackageHandler method reportInstalledPackages.
private PackageStateChanges reportInstalledPackages() throws ExecutionError {
PackageState installedPackages;
PackageHandler.LOGGER.debug("Starting to report packages");
IExecutor<List<PackageVersion>> execute = new InstalledPackages().execute();
PackageHandler.LOGGER.debug("Found packages to report");
installedPackages = new PackageState(execute.getResult());
try {
return ServerCom.notifyInstalledPackages(installedPackages);
} catch (CloudConductorException e) {
PackageHandler.LOGGER.error("Error reporting installed packages: ", e);
throw new ExecutionError(e);
}
}
Aggregations