Skip to content

Commit d0fa1ea

Browse files
committed
fix(cli): imports
Signed-off-by: Chris Snow <[email protected]>
1 parent d5a22aa commit d0fa1ea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hpecp/cli/config.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@
2323
from __future__ import print_function
2424

2525
import json
26+
import jmespath
2627
import sys
2728
import yaml
2829

2930
from hpecp.cli import base
31+
from hpecp.cli_utils import TextOutput
3032

3133

3234
class ConfigProxy(object):
@@ -46,14 +48,17 @@ def get(self, output="yaml", query=None):
4648
"""
4749
if output not in ["yaml", "json", "json-pp", "text"]:
4850
print(
49-
"'output' parameter must be 'yaml', 'json', 'json-pp' or 'text'.",
51+
(
52+
"'output' parameter must be 'yaml', 'json', "
53+
"'json-pp' or 'text'."
54+
),
5055
file=sys.stderr,
5156
)
5257
sys.exit(1)
5358

5459
if output == "yaml" and query is not None:
5560
print(
56-
"output=yaml is not supported when providing the query parameter.",
61+
"output=yaml is not supported with the query parameter.",
5762
file=sys.stderr,
5863
)
5964
sys.exit(1)

0 commit comments

Comments
 (0)