Commit 7bcd1b7
committed
fix: exit with returncode 0 if no jwt token is obtained over dbus
`mender-inventory-mender-configure` produces an error when failing to
fetch the JWT token over DBus. If we exit with 1 mender-update will log:
```
raspberrypi mender-update[1070]: An authentication token could not be obtained over DBus.
mender-update[1029]: record_id=3 severity=error time="2025-Jun-12 21:53:25.802076" name="Global" msg="'/usr/share/mender/inventory/mender-inventory-mender-configure' failed: Process...
```
Now it will log:
`raspberrypi mender-update[1070]: mender-inventory-mender-configure: An authentication token could not be obtained over DBus.`
Changelog: Exit with returncode 0 in `mender-inventory-mender-configure`
if no jwt token is obtained over dbus. This stops mender-update from logging
errors from the inventory script before mender-auth is ready or if the
device isn't accepted.
Ticket: MEN-8591
Signed-off-by: Daniel Skinstad Drabitzius <daniel.drabitzius@northern.tech>1 parent c83502e commit 7bcd1b7
File tree
2 files changed
+4
-2
lines changed- src
- tests/unit
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments