diff --git a/splunklib/client.py b/splunklib/client.py index 0e5b287ba..7f40254b5 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -2144,7 +2144,7 @@ def update(self, **kwargs): if 'restrictToHost' in kwargs: raise IllegalOperationException("Cannot set restrictToHost on an existing input with the SDK.") - elif 'restrictToHost' in self._state.content: + elif 'restrictToHost' in self._state.content and self.kind != 'udp': to_update['restrictToHost'] = self._state.content['restrictToHost'] # Do the actual update operation.