Skip to content

Commit

Permalink
[cli] Fix network name in bridging prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis4a0 committed Feb 14, 2024
1 parent 603f4c0 commit b23431d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/client/cli/cmd/remote_settings_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <multipass/cli/command.h>
#include <multipass/cli/prompters.h>
#include <multipass/constants.h>
#include <multipass/exceptions/settings_exceptions.h>
#include <multipass/logging/log.h>

Expand Down Expand Up @@ -132,7 +133,12 @@ class RemoteSet : public RemoteSettingsCmd
if (auto code = status.error_code(); code == grpc::FAILED_PRECONDITION)
{
mp::BridgePrompter prompter(term);
std::vector<std::string> nets(1, val.toStdString());

auto bridged_network =
RemoteGet(QString::fromStdString(mp::bridged_interface_key), stub, term, verbosity)
.got.toStdString();

std::vector<std::string> nets(1, bridged_network);

if (prompter.bridge_prompt(nets))
{
Expand Down

0 comments on commit b23431d

Please sign in to comment.