File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ function sync_args_from_cmd(args) {
111
111
}
112
112
lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
113
113
} else if ( "username" in args && args [ "username" ] != "" ) {
114
+ if ( ! lt_config [ "lambdatest_auth" ] ) {
115
+ lt_config [ "lambdatest_auth" ] = { } ;
116
+ }
114
117
lt_config [ "lambdatest_auth" ] [ "username" ] = args [ "username" ] ;
115
118
}
116
119
@@ -143,6 +146,9 @@ function sync_args_from_cmd(args) {
143
146
console . log ( "Setting access key from environment" ) ;
144
147
lt_config [ "lambdatest_auth" ] [ "access_key" ] = process . env . LT_ACCESS_KEY ;
145
148
} else if ( "access_key" in args && args [ "access_key" ] != "" ) {
149
+ if ( ! lt_config [ "lambdatest_auth" ] ) {
150
+ lt_config [ "lambdatest_auth" ] = { } ;
151
+ }
146
152
lt_config [ "lambdatest_auth" ] [ "access_key" ] = args [ "access_key" ] ;
147
153
}
148
154
You can’t perform that action at this time.
0 commit comments