mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Make local commands more resilient to unnamed containers
Change-Type: patch
This commit is contained in:
parent
9d4e6eb825
commit
bf4f687a2a
@ -30,7 +30,7 @@ exports.selectContainerFromDevice = Promise.method (deviceIp, filterSupervisor =
|
||||
message: 'Select a container'
|
||||
type: 'list'
|
||||
choices: _.map containers, (container) ->
|
||||
containerName = container.Names[0] or 'Untitled'
|
||||
containerName = container.Names?[0] or 'Untitled'
|
||||
shortContainerId = ('' + container.Id).substr(0, 11)
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user