Skip to content

Commit

Permalink
Merge pull request #93 from SaaShup/container-journal-entries
Browse files Browse the repository at this point in the history
🔊 Make container's journal entry comments predictable
  • Loading branch information
linkdd committed May 8, 2024
2 parents a053600 + d331029 commit 80f5067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -4414,7 +4414,7 @@
"t": "set",
"p": "journal",
"pt": "msg",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"success\",\t \"comments\": \"operation \" & msg.input.data.operation & \" ok \"\t}",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"success\",\t \"comments\": \"operation \" & msg.input.data.operation & \": ok\"\t}",
"tot": "jsonata"
}
],
Expand Down Expand Up @@ -4572,7 +4572,7 @@
"t": "set",
"p": "journal",
"pt": "msg",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"info\",\t \"comments\": $string(msg.input.data.operation & \"-ing\")\t}",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"info\",\t \"comments\": \"operating \" & msg.input.data.operation & \": pending\"\t}",
"tot": "jsonata"
}
],
Expand Down Expand Up @@ -4617,7 +4617,7 @@
"t": "set",
"p": "journal",
"pt": "msg",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"warning\",\t \"comments\": $string(msg.input.data.operation & \" | failed\")\t}",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"warning\",\t \"comments\": \"operation \" & msg.input.data.operation & \": failed\"\t}",
"tot": "jsonata"
}
],
Expand Down Expand Up @@ -4682,7 +4682,7 @@
"t": "set",
"p": "journal",
"pt": "msg",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"danger\",\t \"comments\": $string(msg.payload)\t}",
"to": "{\t \"assigned_object_type\": \"netbox_docker_plugin.container\",\t \"assigned_object_id\": msg.input.data.id,\t \"kind\": \"danger\",\t \"comments\": \"operation \" & msg.input.data.operation & \": error => \" & $string(msg.payload)\t}",
"tot": "jsonata"
}
],
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": "netbox-docker-agent",
"version": "0.21.1",
"version": "0.22.0",
"description": "Saashup agent for netbox manager",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 80f5067

Please sign in to comment.