File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
common/scala/src/main/scala/org/apache/openwhisk/common Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,9 @@ object Config {
141
141
*/
142
142
def readPropertiesFromSystemAndEnv (properties : scala.collection.mutable.Map [String , String ],
143
143
env : Map [String , String ])(implicit logging : Logging ) = {
144
+ val keys : Seq [String ] = properties.keys.toSeq
144
145
readPropertiesFromSystem(properties)
145
- for (p <- properties. keys) {
146
+ for (p <- keys) {
146
147
val envp = p.replace('.' , '_' ).toUpperCase
147
148
val envv = env.get(envp)
148
149
if (envv.isDefined) {
@@ -153,7 +154,8 @@ object Config {
153
154
}
154
155
155
156
def readPropertiesFromSystem (properties : scala.collection.mutable.Map [String , String ])(implicit logging : Logging ) = {
156
- for (p <- properties.keys) {
157
+ val keys : Seq [String ] = properties.keys.toSeq
158
+ for (p <- keys) {
157
159
val sysv = Option (System .getProperty(prefix + p))
158
160
if (sysv.isDefined) {
159
161
logging.info(this , s " system set value for $p" )
You can’t perform that action at this time.
0 commit comments