Don't show Docker container status from devices, as it can be wrong

The status includes a description of how long the device has been in
this state (Up 6 weeks), which is frequently wrong as when the device
first starts up its clock isn't up to date. It's confusing and messy,
best to just remove it entirely.

Fixes #828
Change-Type: patch
This commit is contained in:
Tim Perry 2018-04-13 18:18:56 +02:00
parent 6388cfaf40
commit ad2713fc00

View File

@ -32,10 +32,9 @@ exports.selectContainerFromDevice = Promise.method (deviceIp, filterSupervisor =
choices: _.map containers, (container) -> choices: _.map containers, (container) ->
containerName = container.Names[0] or 'Untitled' containerName = container.Names[0] or 'Untitled'
shortContainerId = ('' + container.Id).substr(0, 11) shortContainerId = ('' + container.Id).substr(0, 11)
containerStatus = container.Status
return { return {
name: "#{containerName} (#{shortContainerId}) - #{containerStatus}" name: "#{containerName} (#{shortContainerId})"
value: container.Id value: container.Id
} }