Commit a229781
authored
Fix: Empty CLI string defaults no longer override env/API config (#17)
When CLI arguments with empty string defaults (like --dockerfiles) are not
explicitly provided by the user, they were incorrectly overwriting non-empty
values loaded from environment variables or the Socket Basics API config.
The issue was that the check `if arg_value is not None` passed for empty
strings, causing `config_dict['dockerfiles'] = ""` to wipe out the value
from the dashboard config.
Changed the condition to `if arg_value` (truthy check) for non-bool types,
so empty string defaults don't override actual config values.
This fixes Dockerfile scanning not working when configured via the Socket
dashboard, as the `dockerfiles` value was being cleared by the CLI default.1 parent bf6c73c commit a229781
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1279 | 1281 | | |
1280 | 1282 | | |
1281 | 1283 | | |
| |||
0 commit comments