Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(self):
pass

def compare(self, data): # pylint: disable=no-self-use
none_strings = ['[]', '{}', 'null', 'false']
none_strings = ['[]', '{}', 'false']
try:
assert not data or data in none_strings
except AssertionError:
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main(args, file=sys.stdout): # pylint: disable=redefined-builtin

# Commands can return a dictionary/list of results
# If they do, we print the results.
if cmd_result:
if cmd_result and cmd_result.result is not None:
from azure.cli.core._output import OutputProducer
formatter = OutputProducer.get_formatter(APPLICATION.configuration.output_format)
OutputProducer(formatter=formatter, file=file).out(cmd_result)
Expand Down