File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ def create_hdfs_with_kerberos(
64
64
kdc_data_port = "" ,
65
65
realm = "" ,
66
66
client_principal = "" ,
67
- browse_only = True ,
67
+ browse_only = None ,
68
68
host = "" ,
69
69
keytab = "" ,
70
70
backup_host = "" ,
71
71
type = "" ,
72
72
port = "" ,
73
- read_only = False ,
73
+ read_only = None ,
74
74
):
75
75
"""TODO.
76
76
@@ -100,13 +100,21 @@ def create_hdfs_with_kerberos(
100
100
[description]
101
101
backup_host : [type]
102
102
[description]
103
- endpoint_type : [type]
103
+ type : [type]
104
104
[description]
105
- endpoint_port : [type]
105
+ port : [type]
106
106
[description]
107
107
read_only : [type]
108
108
[description]
109
109
"""
110
+ assert isinstance (
111
+ browse_only , bool
112
+ ), "'browse-only' parameter must be 'true' or 'false'"
113
+
114
+ assert isinstance (
115
+ read_only , bool
116
+ ), "'read-only' parameter must be 'true' or 'false'"
117
+
110
118
base .get_client ().datatap .create_hdfs_with_kerberos (
111
119
name ,
112
120
description ,
You can’t perform that action at this time.
0 commit comments