Skip to content

Commit 85a56b0

Browse files
author
Sam Stelle
committed
Nit fix, 3 space indents to 4 spaces.
1 parent 7417088 commit 85a56b0

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

examples/searchcommands_app/bin/generatehello.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
import sys, time
1818
from splunklib.searchcommands import \
19-
dispatch, GeneratingCommand, Configuration, Option, validators
19+
dispatch, GeneratingCommand, Configuration, Option, validators
2020

2121
@Configuration()
2222
class GenerateHelloCommand(GeneratingCommand):
23-
count = Option(require=True, validate=validators.Integer())
23+
count = Option(require=True, validate=validators.Integer())
2424

25-
def generate(self):
26-
for i in range(1, self.count + 1):
27-
text = 'Hello World %d' % i
28-
yield {'_time': time.time(), 'event_no': i, '_raw': text }
25+
def generate(self):
26+
for i in range(1, self.count + 1):
27+
text = 'Hello World %d' % i
28+
yield {'_time': time.time(), 'event_no': i, '_raw': text }
2929

3030
dispatch(GenerateHelloCommand, sys.argv, sys.stdin, sys.stdout, __name__)

examples/searchcommands_template/bin/generate.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
@Configuration()
88
class %(command.title())Command(GeneratingCommand):
9-
""" %(synopsis)
9+
""" %(synopsis)
1010
11-
##Syntax
11+
##Syntax
1212
13-
%(syntax)
13+
%(syntax)
1414
15-
##Description
15+
##Description
1616
17-
%(description)
17+
%(description)
1818
19-
"""
20-
def generate(self):
19+
"""
20+
def generate(self):
2121
# Put your event code here
2222
pass
2323

examples/searchcommands_template/bin/stream.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77

88
@Configuration()
99
class %(command.title())Command(StreamingCommand):
10-
""" %(synopsis)
10+
""" %(synopsis)
1111
12-
##Syntax
12+
##Syntax
1313
14-
%(syntax)
14+
%(syntax)
1515
16-
##Description
16+
##Description
1717
18-
%(description)
18+
%(description)
1919
20-
"""
21-
def stream(self, events):
20+
"""
21+
def stream(self, events):
2222
# Put your event transformation code here
2323
pass
2424

0 commit comments

Comments
 (0)