Skip to content

Commit

Permalink
Verified behaviour for all group commands
Browse files Browse the repository at this point in the history
I have looked at the new output and api calls for the "group" commands
in the testsuite and it looks good to me.
Fixed a bug in history.py concerning how history is printed when owners
or hosts are added/removed from hostgroups.
Made a minor change to the datetime regex in diff.py to handle the extra
space that comes before a single digit date.
  • Loading branch information
oyvindhagberg committed Jun 5, 2024
1 parent 98681c1 commit 205da62
Show file tree
Hide file tree
Showing 3 changed files with 643 additions and 306 deletions.
2 changes: 1 addition & 1 deletion ci/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
r"\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:[+-]\d{2}:\d{2})?|\d{4}-\d{2}-\d{2}"
)
datetime_str_pattern = re.compile(
r"\b[A-Za-z]{3}\s[A-Za-z]{3}\s([0-2]?[0-9]|3[0-1])\s([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\s[0-9]{4}\b"
r"\b[A-Za-z]{3}\s[A-Za-z]{3}\s+([0-2]?[0-9]|3[0-1])\s([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\s[0-9]{4}\b"
)
# datetime_str_pattern = re.compile(
# r"\b(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s([0-2]?[0-9]|3[0-1])\s([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\s[0-9]{4}\b"
Expand Down
Loading

0 comments on commit 205da62

Please sign in to comment.