Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf committed Apr 29, 2020
1 parent c68b43f commit a1f2620
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ import com.normation.rudder.services.policies.PropertyParserTokens._
import net.liftweb.common._
import net.liftweb.json.JsonAST.JValue

import scala.util.parsing.combinator.RegexParsers

/**
* A parser that handle parameterized value of
* directive variables.
Expand Down Expand Up @@ -180,7 +178,7 @@ object PropertyParserTokens {
final case class DefaultValue(value: List[Token]) extends AnyVal with PropertyOption

def containsVariable(tokens: List[Token]): Boolean = {
tokens.exists(_.isInstanceOf[Interpolation])
tokens.exists(t => t.isInstanceOf[Interpolation] || t.isInstanceOf[NonRudderVar])
}

}
Expand Down

0 comments on commit a1f2620

Please sign in to comment.