Skip to content

Commit 4c19efc

Browse files
committed
fix(cli): datatap assertions
Signed-off-by: Chris Snow <[email protected]>
1 parent f640cce commit 4c19efc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hpecp/cli/datatap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def examples(self):
5555
)
5656
)
5757

58+
@base.intercept_exception
5859
def create_hdfs_with_kerberos(
5960
self,
6061
name,
@@ -107,11 +108,11 @@ def create_hdfs_with_kerberos(
107108
read_only : [type]
108109
[description]
109110
"""
110-
assert isinstance(
111+
assert browse_only is not None and isinstance(
111112
browse_only, bool
112113
), "'browse-only' parameter must be 'true' or 'false'"
113114

114-
assert isinstance(
115+
assert read_only is not None and isinstance(
115116
read_only, bool
116117
), "'read-only' parameter must be 'true' or 'false'"
117118

0 commit comments

Comments
 (0)