Skip to content

Bug report: flow environment list doesnt output anything #5583

@brugh

Description

@brugh

Priority

(Medium) I'm annoyed but I'll live

Description

the v7.0.0 of m365 doesn't output any information when running

m365 flow environment list

When adding output -o text it outputs the correct information but no output option or -o json doesn't work.

changing line 21 in dist/m365/flow/commands/environment/environment-list.js from

            if (args.options.output !== 'json' && res.length > 0) {

to

            if (res.length > 0) {

fixes the issue

Steps to reproduce

m365 login -t browser
m365 flow environment list

Expected results

a list of json formatted environments

Actual results

no output at all

Diagnostics

No response

CLI for Microsoft 365 version

v7.0.0

nodejs version

v18.17.1

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions