Skip to content

Commit

Permalink
Dev: Drop unsupported 'moon' in date_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Jan 9, 2025
1 parent 89c119f commit 19b75ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crmsh/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
simple_date_ops = ('lt', 'gt')
date_ops = ('lt', 'gt', 'in_range', 'date_spec')
date_spec_names = '''hours monthdays weekdays yearsdays months \
weeks years weekyears moon'''.split()
weeks years weekyears'''.split()
in_range_attrs = ('start', 'end')
node_default_type = "normal"
node_attributes_keyw = ("attributes", "utilization")
Expand Down
1 change: 0 additions & 1 deletion crmsh/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ def match_rule_expression(self):
| weeks=<value>
| years=<value>
| weekyears=<value>
| moon=<value>
"""
boolop = None
exprs = [self._match_simple_exp()]
Expand Down

0 comments on commit 19b75ea

Please sign in to comment.