Skip to content

Commit

Permalink
fix: remove generation of expose:_splunkd_data stanza in web.conf
Browse files Browse the repository at this point in the history
This commit removes generation of
```
[expose:_splunkd_data]
pattern = data/*
methods = GET
```
for `web.conf`.

Closes #303.
  • Loading branch information
artemrys authored and Artem Rys committed Nov 29, 2021
1 parent 067c3b8 commit df6441e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions splunk_add_on_ucc_framework/uccrestbuilder/rest_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ class WebConf:
[expose:{name}_specified]
pattern = {name}/*
methods = POST, GET, DELETE
"""

_internal_template = """
[expose:{name}]
pattern = {endpoint}
methods = GET
"""

@classmethod
Expand All @@ -93,8 +87,4 @@ def build(cls, endpoints):
name=endpoint.name,
)
)
# add splunkd data endpoint
stanzas.append(
cls._internal_template.format(name="_splunkd_data", endpoint="data/*")
)
return "".join(stanzas)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ methods = POST, GET
[expose:splunk_ta_uccexample_settings_specified]
pattern = splunk_ta_uccexample_settings/*
methods = POST, GET, DELETE

[expose:_splunkd_data]
pattern = data/*
methods = GET
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ methods = POST, GET
[expose:splunk_ta_uccexample_example_input_two_specified]
pattern = splunk_ta_uccexample_example_input_two/*
methods = POST, GET, DELETE

[expose:_splunkd_data]
pattern = data/*
methods = GET

0 comments on commit df6441e

Please sign in to comment.