diff --git a/troveclient/utils.py b/troveclient/utils.py index 8d7546ce..9210d6d3 100644 --- a/troveclient/utils.py +++ b/troveclient/utils.py @@ -118,7 +118,7 @@ def _output_override(objs, print_as): If an output override global flag is set, print with override raise BaseException if no printing was overridden. """ - if 'json_output' in globals(): + if globals().get('json_output', False): if print_as == 'list': new_objs = [] for o in objs: