mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-03-25 05:25:15 +00:00
Merge pull request #2253 from balena-io/2252-fix-ssh-service-list
ssh: fix incorrect service name parsing in local mode
This commit is contained in:
commit
9fb62d92b7
@ -50,7 +50,7 @@ export async function performLocalDeviceSSH(
|
||||
});
|
||||
|
||||
const regex = new RegExp(`(^|\\/)${escapeRegExp(opts.service)}_\\d+_\\d+`);
|
||||
const nameRegex = /\/?([a-zA-Z0-9_]+)_\d+_\d+/;
|
||||
const nameRegex = /\/?([a-zA-Z0-9_-]+)_\d+_\d+/;
|
||||
let allContainers: ContainerInfo[];
|
||||
try {
|
||||
allContainers = await docker.listContainers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user