Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions contentctl/input/director.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,15 @@ def createSecurityContent(
for err in error.errors():
error_msg = err.get("msg", "")
if "https://errors.pydantic.dev" in error_msg:
continue
# Unfortunately, this is a catch-all for untyped errors. We will still need to emit this
# This is harder to read, but the other option is suppressing it which we cannot do as
# it makes troubleshooting extremelt difficult
print(
f" {Colors.RED}{Colors.ERROR} {error_msg}{Colors.END}"
)

# Clean error categorization
if "Field required" in error_msg:
elif "Field required" in error_msg:
print(
f" {Colors.YELLOW}{Colors.WARNING} Field Required: {err.get('loc', [''])[0]}{Colors.END}"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "contentctl"

version = "5.4.0"
version = "5.4.1"

description = "Splunk Content Control Tool"
authors = ["STRT <research@splunk.com>"]
Expand Down
Loading