Skip to content

Commit

Permalink
troubleshooting cloud tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mzitnik committed Dec 11, 2024
1 parent 2f86084 commit 9e14478
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ object Utils extends Logging {
copyPath.toFile
}

def load(key: String, defValue: String = ""): String = sys.props.getOrElse(key, sys.env.getOrElse(key, defValue))
def load(key: String, defValue: String = ""): String = {
val envValue = sys.env.getOrElse(key, defValue)
println(s"Loaded $key=${envValue.length}")
val value = sys.props.getOrElse(key, envValue)
println(s"Loaded $key=${value.length}")
value
}

def stripSingleQuote(maybeQuoted: String): String = {
var start = 0
Expand Down

0 comments on commit 9e14478

Please sign in to comment.