Skip to content

Commit

Permalink
[cli/mount] remove default target if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-toterman committed Sep 30, 2024
1 parent 57873ac commit dd3a060
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/client/cli/cmd/mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,7 @@ mp::ParseCode cmd::Mount::parse_args(mp::ArgParser* parser)

auto entry = request.add_target_paths();
entry->set_instance_name(instance_name.toStdString());

if (target_path.isEmpty())
{
entry->set_target_path(source_path.toStdString());
}
else
{
entry->set_target_path(target_path.toStdString());
}
entry->set_target_path(target_path.toStdString());
}

QRegularExpression map_matcher("^([0-9]+[:][0-9]+)$");
Expand Down

0 comments on commit dd3a060

Please sign in to comment.