Skip to content

Commit 8514288

Browse files
author
Itay Neeman
committed
Do not auto-append restrictToHost to UDP inputs
1 parent f92d8ef commit 8514288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ def update(self, **kwargs):
21442144

21452145
if 'restrictToHost' in kwargs:
21462146
raise IllegalOperationException("Cannot set restrictToHost on an existing input with the SDK.")
2147-
elif 'restrictToHost' in self._state.content:
2147+
elif 'restrictToHost' in self._state.content and self.kind != 'udp':
21482148
to_update['restrictToHost'] = self._state.content['restrictToHost']
21492149

21502150
# Do the actual update operation.

0 commit comments

Comments
 (0)