Skip to content

Commit

Permalink
[daemon/find] Filter out snapcraft remote by default
Browse files Browse the repository at this point in the history
Fixes #3274
  • Loading branch information
Chris Townsend committed Dec 11, 2023
1 parent c4e27da commit 35a5e40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,8 @@ try // clang-format on
std::unordered_set<std::string> images_found;
auto action = [&images_found, &default_remote, request, &response](const std::string& remote,
const mp::VMImageInfo& info) {
if ((info.supported || request->allow_unsupported()) && !info.aliases.empty() &&
if (!(remote == mp::snapcraft_remote) && (info.supported || request->allow_unsupported()) &&
!info.aliases.empty() &&
images_found.find(info.release_title.toStdString()) == images_found.end())
{
add_aliases(response.mutable_images_info(), remote, info, default_remote);
Expand Down

0 comments on commit 35a5e40

Please sign in to comment.