Skip to content

Commit

Permalink
Merge branch 'branches/rudder/6.2' into branches/rudder/7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Apr 12, 2022
2 parents 9d29df1 + c37822d commit d92e6f2
Showing 1 changed file with 8 additions and 7 deletions.
Expand Up @@ -1181,13 +1181,14 @@ class FusionInventoryParser(
}

def processEnvironmentVariable(ev : NodeSeq) : Option[EnvironmentVariable] = {
optText(ev\"KEY") match {
case None =>
InventoryProcessingLogger.logEffect.debug("Ignoring entry Envs because tag KEY is empty")
InventoryProcessingLogger.logEffect.debug(ev.toString())
None
case Some(key) =>
Some (
// we need to keep the key exactly as it is, see https://issues.rudder.io/issues/20984
(ev\"KEY").text match {
case null | "" =>
InventoryProcessingLogger.logEffect.debug("Ignoring entry Envs because tag KEY is empty")
InventoryProcessingLogger.logEffect.debug(ev.toString())
None
case key => // even accept only blank key, if the OS accepted it
Some (
EnvironmentVariable (
name = key
, value = optText(ev\"VAL")
Expand Down

0 comments on commit d92e6f2

Please sign in to comment.