Skip to content

Bug report: undefined in verbose logs #6619

@milanholemans

Description

@milanholemans

Priority

(Low) Something is a little off

Description

When running m365 flow list not as admin, you're getting a weird verbose log.

Image

This is because of this line where we use the && operator.

if (this.verbose) {
await logger.logToStderr(`Getting Power Automate flows${args.options.asAdmin && ' as admin'} in environment '${args.options.environmentName}'...`);
}

Steps to reproduce

Run m365 flow list in verbose or debug mode when not using the --asAdmin flag.

Expected results

Clear verbose log.

Actual results

Undefined value in the verbose log.

Diagnostics

No response

CLI for Microsoft 365 version

v10.4.2

nodejs version

22.14.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions