File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export enum CxConstants {
3030 CMD_AUTH = 'auth' ,
3131 SUB_CMD_VALIDATE = 'validate' ,
3232 CMD_PROJECT = 'project' ,
33- CMD_ENVIRONMENTS = 'environments' ,
33+ CMD_DAST_ENVIRONMENTS = 'dast- environments' ,
3434 SUB_CMD_BRANCHES = 'branches' ,
3535 CMD_SCAN = 'scan' ,
3636 SUB_CMD_SHOW = 'show' ,
Original file line number Diff line number Diff line change @@ -277,7 +277,9 @@ export class CxWrapper {
277277
278278 async environmentsList ( filters : string ) : Promise < CxCommandOutput > {
279279 const validated_filters = this . filterArguments ( filters ) ;
280- const commands : string [ ] = ( [ CxConstants . CMD_ENVIRONMENTS , CxConstants . SUB_CMD_LIST ] as string [ ] ) . concat ( validated_filters ) ;
280+ const commands : string [ ] = ( [ CxConstants . CMD_DAST_ENVIRONMENTS , CxConstants . SUB_CMD_LIST ] as string [ ] ) . concat (
281+ validated_filters
282+ ) ;
281283 commands . push ( ...this . initializeCommands ( true ) ) ;
282284 const exec = new ExecutionService ( ) ;
283285 return await exec . executeCommands ( this . config . pathToExecutable , commands , CxConstants . DAST_ENVIRONMENT_TYPE ) ;
You can’t perform that action at this time.
0 commit comments