Commit fd1fcf9
committed
Add flag --fail-on-error to zypp-plugin-mode
Currently container-suseconnect will fail with exit code 1 if it is not able to
obtain the SLE credentials. This is however causing UX issues in the SLE BCI
containers, which are perfectly fine without a SLE subscription.
Thus a new flag is introduced just for the mode when running as the zypper
plugin: `--fail-on-error`. When this flag is set or if the environment variable
`CONTAINER_SUSECONNECT_FAIL_ON_ERR` is set, then `container-suseconnect` will
fail as it did so far, but the default is now that errors will be silently
swallowed so that users of SLE BCI don't get confused by this error message.1 parent b14a914 commit fd1fcf9
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
168 | | - | |
| 176 | + | |
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
172 | | - | |
| 180 | + | |
173 | 181 | | |
174 | 182 | | |
175 | 183 | | |
| |||
0 commit comments