Skip to content

Commit cbb8ff4

Browse files
committed
Fix template commands to have correct imports
1 parent 3a957cc commit cbb8ff4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/searchcommands_template/bin/generate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
import sys
1718
from splunklib.searchcommands import \
1819
dispatch, GeneratingCommand, Configuration, Option, validators
1920

examples/searchcommands_template/bin/report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
import sys
1718
from splunklib.searchcommands import \
1819
dispatch, ReportingCommand, Configuration, Option, validators
1920

examples/searchcommands_template/bin/stream.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
import sys
1718
from splunklib.searchcommands import \
18-
dispatch, GeneratingCommand, Configuration, Option, validators
19+
dispatch, StreamingCommand, Configuration, Option, validators
1920

2021

2122
@Configuration()
22-
class %(command.title())Command(GeneratingCommand):
23+
class %(command.title())Command(StreamingCommand):
2324
""" %(synopsis)
2425
2526
##Syntax

0 commit comments

Comments
 (0)