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) {
111111 }
112112 lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
113113 } else if ( "username" in args && args [ "username" ] != "" ) {
114+ if ( ! lt_config [ "lambdatest_auth" ] ) {
115+ lt_config [ "lambdatest_auth" ] = { } ;
116+ }
114117 lt_config [ "lambdatest_auth" ] [ "username" ] = args [ "username" ] ;
115118 }
116119
@@ -143,6 +146,9 @@ function sync_args_from_cmd(args) {
143146 console . log ( "Setting access key from environment" ) ;
144147 lt_config [ "lambdatest_auth" ] [ "access_key" ] = process . env . LT_ACCESS_KEY ;
145148 } else if ( "access_key" in args && args [ "access_key" ] != "" ) {
149+ if ( ! lt_config [ "lambdatest_auth" ] ) {
150+ lt_config [ "lambdatest_auth" ] = { } ;
151+ }
146152 lt_config [ "lambdatest_auth" ] [ "access_key" ] = args [ "access_key" ] ;
147153 }
148154
You can’t perform that action at this time.
0 commit comments