We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1dbc24 commit 921de08Copy full SHA for 921de08
src/platform/backends/hyperv_api/hcs_virtual_machine.cpp
@@ -175,6 +175,12 @@ void try_create_endpoints(
175
std::vector<multipass::hyperv::hcn::CreateEndpointParameters> created_endpoints;
176
for (const auto& endpoint : create_endpoint_params)
177
{
178
+ if (HCN().delete_endpoint(endpoint.endpoint_guid))
179
+ {
180
+ mpl::warn(vm_name,
181
+ "Endpoint {} was already present, removed it.",
182
+ endpoint.endpoint_guid);
183
+ }
184
if (const auto result = HCN().create_endpoint(endpoint))
185
created_endpoints.push_back(endpoint);
186
else
0 commit comments