Skip to content

Commit

Permalink
v2.9.3 fix introduced bug from last merge
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed May 14, 2024
1 parent 87716f5 commit 7571869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function list(){
docker.listContainers(opts, function(err, containers) {
// check for changes in status (first run is populating data only)
let newConArray = [];
if (containers > 0) {
if (containers.length > 0) {
containers.forEach(c => {
// if label_enable is false then exclude any specifically false labelled containers
if (LABEL_ENABLE == 'false' && JSON.stringify(c.Labels).includes('"monocker.enable":"false"')) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monocker",
"version": "2.9.3",
"version": "2.9.4",
"description": "Monitors and alerts for docker containers state changes",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7571869

Please sign in to comment.