Skip to content

Commit

Permalink
Merge pull request #99 from SaaShup/fix_empty_logs
Browse files Browse the repository at this point in the history
🚑 fix reponse if container logs are empty
  • Loading branch information
lvenier committed May 24, 2024
2 parents 26f0e3d + 7284226 commit 6b37155
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 37 deletions.
81 changes: 75 additions & 6 deletions flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -5829,7 +5829,7 @@
"y": 240,
"wires": [
[
"4162e2069a4e1e72"
"cd52bc77a65b9441"
],
[],
[]
Expand All @@ -5847,7 +5847,7 @@
"initialize": "",
"finalize": "",
"libs": [],
"x": 1060,
"x": 1140,
"y": 220,
"wires": [
[
Expand All @@ -5866,7 +5866,7 @@
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 890,
"x": 950,
"y": 220,
"wires": [
[
Expand All @@ -5893,7 +5893,7 @@
"from": "",
"to": "",
"reg": false,
"x": 920,
"x": 1060,
"y": 280,
"wires": [
[
Expand All @@ -5917,11 +5917,11 @@
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1110,
"x": 1230,
"y": 280,
"wires": [
[
"21201e5b02739ce2"
"7da9a83d74d9daed"
]
]
},
Expand Down Expand Up @@ -5954,6 +5954,75 @@
]
]
},
{
"id": "cd52bc77a65b9441",
"type": "switch",
"z": "1d08205d001d337b",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "nempty"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 830,
"y": 220,
"wires": [
[
"4162e2069a4e1e72"
],
[
"86a15ae6532cb93b"
]
]
},
{
"id": "7da9a83d74d9daed",
"type": "http response",
"z": "1d08205d001d337b",
"name": "",
"statusCode": "",
"headers": {
"content-type": "text/plain; charset=utf-8"
},
"x": 910,
"y": 320,
"wires": []
},
{
"id": "86a15ae6532cb93b",
"type": "change",
"z": "1d08205d001d337b",
"name": "no logs",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 860,
"y": 280,
"wires": [
[
"7da9a83d74d9daed"
]
]
},
{
"id": "788067a8780c7835",
"type": "http in",
Expand Down
49 changes: 19 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "netbox-docker-agent",
"version": "0.24.1",
"version": "0.24.2",
"description": "Saashup agent for netbox manager",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6b37155

Please sign in to comment.