Skip to content

Bug report: No stdout command output for spo cdn get #6133

@milanholemans

Description

@milanholemans

Priority

(Low) Something is a little off

Description

Noticed that the command spo cdn get has no command output (stdout). All output is going to stderr.

if (response.ErrorInfo) {
throw response.ErrorInfo.ErrorMessage;
}
else {
const result: boolean = json[json.length - 1];
if (this.verbose) {
await logger.logToStderr(`${(cdnType === 0 ? 'Public' : 'Private')} CDN at ${spoAdminUrl} is ${(result === true ? 'enabled' : 'disabled')}`);
}
else {
await logger.logToStderr(result);
}
}

Also noticed that the result returned is different when using --verbose or --debug.

Steps to reproduce

Use spo cdn get

Expected results

Command to output result to stdout

Actual results

Everything is logged to stderr

Diagnostics

No response

CLI for Microsoft 365 version

v7.10.0

nodejs version

v20.10.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions