Skip to content

Commit d655111

Browse files
authored
Merge pull request #1800 from jrha/cleanup-metaconfig-zookeeper
ncm-metaconfig: zookeeper: Fix wrapping and indentation in pan
2 parents a279c37 + c4e35d1 commit d655111

File tree

1 file changed

+5
-2
lines changed
  • ncm-metaconfig/src/main/metaconfig/zookeeper/pan

1 file changed

+5
-2
lines changed

ncm-metaconfig/src/main/metaconfig/zookeeper/pan/schema.pan

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ declaration template metaconfig/zookeeper/schema;
22

33
include 'pan/types';
44

5+
type zookeeper_four_letter_word = choice(
6+
'conf', 'cons', 'crst', 'dump', 'envi', 'mntr', 'ruok', 'srst', 'srvr', 'stat', 'wchc', 'wchp', 'wchs'
7+
);
8+
59
type zookeeper_main = {
610
# minimal
711
"tickTime" : long = 2000
@@ -22,8 +26,7 @@ type zookeeper_main = {
2226
"autopurge.snapRetainCount" ? long
2327
"autopurge.purgeInterval" ? long
2428
"syncEnabled" ? boolean
25-
"4lw.commands.whitelist" ? choice('conf', 'cons', 'crst', 'dump', 'envi', 'mntr',
26-
'ruok', 'srst', 'srvr', 'stat', 'wchc', 'wchp', 'wchs') []
29+
"4lw.commands.whitelist" ? zookeeper_four_letter_word[]
2730

2831
# cluster/ensemble
2932
"initLimit" : long = 10

0 commit comments

Comments
 (0)