Skip to content

Commit 8e928ee

Browse files
authored
Merge pull request #466 from splunk/hotfix/cms-filter-fbd
Hotfix: filtering FBDs from CMS validation Looks great! Merge in prep for release
2 parents 993b85a + f0f41a6 commit 8e928ee

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

contentctl/objects/content_versioning_service.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
from typing import Any, Callable
88

99
import splunklib.client as splunklib # type: ignore
10-
from pydantic import (
11-
BaseModel,
12-
Field,
13-
PrivateAttr,
14-
computed_field,
15-
model_validator,
16-
)
10+
from pydantic import BaseModel, Field, PrivateAttr, computed_field, model_validator
1711
from semantic_version import Version
1812
from splunklib.binding import HTTPError, ResponseReader # type: ignore
1913
from splunklib.data import Record # type: ignore
@@ -422,12 +416,14 @@ def _query_cms_main(self, use_cache: bool = False) -> splunklib.Job:
422416
if self.kvstore_content_versioning:
423417
query = (
424418
f"| inputlookup cms_content_lookup | search app_name={self.global_config.app.appid}"
425-
f"| fields content"
419+
"| fields content | spath input=content "
420+
"| search action.correlationsearch.detection_type=ebd | fields content"
426421
)
427422
elif self.indexbased_content_versioning:
428423
query = (
429-
f"search index=cms_main sourcetype=stash_common_detection_model "
430-
f'app_name="{self.global_config.app.appid}" | fields _raw'
424+
"search index=cms_main sourcetype=stash_common_detection_model "
425+
f'app_name="{self.global_config.app.appid}" '
426+
"action.correlationsearch.detection_type=ebd | fields _raw"
431427
)
432428
else:
433429
if self.kvstore_content_versioning:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "contentctl"
33

4-
version = "5.5.12"
4+
version = "5.5.13"
55

66
description = "Splunk Content Control Tool"
77
authors = ["STRT <research@splunk.com>"]

0 commit comments

Comments
 (0)