if the container already exists, then add it to the list of containers in the client

This commit is contained in:
vladimir.kuznetsov 2023-02-07 10:39:18 +03:00
parent b2fd94d20e
commit b5778a9cb5
2 changed files with 3 additions and 3 deletions

View file

@ -337,7 +337,7 @@ void UiLogic::installServer(QMap<DockerContainer, QJsonObject> &containers)
m_serverController->disconnectFromHost(installCredentials);
}
if (error == ErrorCode::NoError) {
if (error == ErrorCode::NoError || error == ErrorCode::ServerContainerAlreadyInstalledError) {
QJsonObject server;
server.insert(config_key::hostName, installCredentials.hostName);
server.insert(config_key::userName, installCredentials.userName);