check swarm value before passing

pull/660/head
Vinay Dawani 2 years ago
parent fb883c7b27
commit b7722ed333

@ -22,11 +22,14 @@ export default function getDockerArguments(server) {
if (servers[server]) {
if (servers[server].socket) {
return { conn: { socketPath: servers[server].socket }, swarm: servers[server].swarm };
return { conn: { socketPath: servers[server].socket }, swarm: servers[server].swarm == true ? true : false };
}
if (servers[server].host) {
return { conn: { host: servers[server].host, port: servers[server].port || null }, swarm: servers[server].swarm };
return {
conn: { host: servers[server].host, port: servers[server].port || null },
swarm: servers[server].swarm == true ? true : false,
};
}
return servers[server];

Loading…
Cancel
Save