Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fix a bug occuring during the parsing of the env variables
There was a check that an env option should be splitted in exactly two, divided by a
=
sign.This was failing trying to set a variable like this
VAR=foo=bar
, it was not possible to set the value offoo=bar
toVAR
.Moved the
strings.Split
to astrings.SplitN(s, sep, 2)
so we can split at most at two values.I've also renamed the
UpdateISE
toUpdateICE
, and refactored theUpdateICE
and theUpdateBSN
splitting the three logic in different functions.note
I don't feel that we should pass the cobra.Command, the
manifest
package should probably just perform logic on the manifest and should not be aware of where the values are coming from, but I didn't want to change too many things.I'm available to move that logic though. :)