Fix date removal in nonverbose config (#262)

* Fix date removal in nonverbose config

As in newer versions of RouterOS the date format is 2024-10-02 and no longer 2024/10/02, the regex did no longer match all cases. This is fixed.

* Add changelog fragment
This commit is contained in:
Maurizio Pasquinelli 2024-02-20 20:29:41 +01:00 committed by GitHub
parent 10fbc564a7
commit 232a013c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -311,7 +311,7 @@ class Config(FactsBase):
'/export',
]
RM_DATE_RE = re.compile(r'^# [a-z0-9/][a-z0-9/]* [0-9:]* by RouterOS')
RM_DATE_RE = re.compile(r'^# [a-z0-9/-][a-z0-9/-]* [0-9:]* by RouterOS')
def populate(self):
super(Config, self).populate()