Skip to content

Commit

Permalink
Use better logic to compare snapcraft remote
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Abreu <[email protected]>
Signed-off-by: Chris Townsend <[email protected]>
  • Loading branch information
Chris Townsend and ricab authored Dec 12, 2023
1 parent 08e873c commit 85dc6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ 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 (!(remote == mp::snapcraft_remote) && (info.supported || request->allow_unsupported()) &&
if (remote != mp::snapcraft_remote && (info.supported || request->allow_unsupported()) &&
!info.aliases.empty() &&
images_found.find(info.release_title.toStdString()) == images_found.end())
{
Expand Down

0 comments on commit 85dc6cb

Please sign in to comment.