Skip to content

Commit d9249bc

Browse files
committed
Merge pull request splunk#128 from splunk/bugfix/udp-restricttohost
Do not auto-append restrictToHost to UDP inputs
2 parents bd8d142 + 8514288 commit d9249bc

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
@@ -2152,7 +2152,7 @@ def update(self, **kwargs):
21522152

21532153
if 'restrictToHost' in kwargs:
21542154
raise IllegalOperationException("Cannot set restrictToHost on an existing input with the SDK.")
2155-
elif 'restrictToHost' in self._state.content:
2155+
elif 'restrictToHost' in self._state.content and self.kind != 'udp':
21562156
to_update['restrictToHost'] = self._state.content['restrictToHost']
21572157

21582158
# Do the actual update operation.

0 commit comments

Comments
 (0)