Skip to content

Commit 35bd39a

Browse files
committed
Fix lint
1 parent c5bff22 commit 35bd39a

2 files changed

Lines changed: 99 additions & 61 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ TODO: Link docs about this
118118
```python
119119
from splunklib.searchcommands import StreamingCommand
120120

121+
121122
class MyCommand(StreamingCommand):
122123
def get_metadata(self):
123124
# Access instance metadata
@@ -169,6 +170,7 @@ class GeneratorTest(GeneratingCommand):
169170
```python
170171
from splunklib.modularinput import Script
171172

173+
172174
class MyScript(Script):
173175
def stream_events(self, inputs, ew):
174176
# Access instance metadata
@@ -185,12 +187,12 @@ class MyScript(Script):
185187

186188
```python
187189
def stream_events(self, inputs, ew):
188-
# [...]
190+
# [...]
189191

190-
# Access the modular input app's metadata (like server_host, server_uri, etc) from `InputDefinition` object
191-
server_host = inputs.metadata["server_host"]
192-
server_uri = inputs.metadata["server_uri"]
193-
checkpoint_dir = inputs.metadata["checkpoint_dir"]
192+
# Access the modular input app's metadata (like server_host, server_uri, etc) from `InputDefinition` object
193+
server_host = inputs.metadata["server_host"]
194+
server_uri = inputs.metadata["server_uri"]
195+
checkpoint_dir = inputs.metadata["checkpoint_dir"]
194196
```
195197

196198
### Contributions

0 commit comments

Comments
 (0)