Skip to content

Commit

Permalink
cli: Adjust client to the CLI API changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <mike.sul@foundries.io>
  • Loading branch information
mike-sul committed Jul 10, 2024
1 parent d75f9c3 commit 83f73ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <boost/process.hpp>

#include "aktualizr-lite/api.h"
#include "aktualizr-lite/aklite_client_ext.h"
#include "aktualizr-lite/cli/cli.h"
#include "cli.h"

Expand Down Expand Up @@ -112,7 +113,7 @@ static void print_status(aklite::cli::StatusCode ret) {
std::cout << std::endl;
}

static std::unique_ptr<AkliteClient> init_client(bool online_mode) {
static std::unique_ptr<AkliteClientExt> init_client(bool online_mode) {
boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info);

std::vector<boost::filesystem::path> cfg_dirs;
Expand All @@ -132,7 +133,7 @@ static std::unique_ptr<AkliteClient> init_client(bool online_mode) {
}

try {
return std::make_unique<AkliteClient>(cfg_dirs, false, false);
return std::make_unique<AkliteClientExt>(cfg_dirs, false, false);
} catch (const std::exception& exc) {
LOG_ERROR << "Failed to initialize the client: " << exc.what();
return nullptr;
Expand Down

0 comments on commit 83f73ec

Please sign in to comment.