Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
from time import sleep
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401


def main():
indicator = demisto.args().get("indicator")
indicatorType = demisto.args().get("indicatorType")
score = int(demisto.args().get("score"))
vendor = demisto.args().get("vendor")
reliability = demisto.args().get("reliability", None)
indicator=demisto.args().get("indicator")
indicatorType=demisto.args().get("indicatorType")
SCORE = int( demisto.args().get("score") )
vendor=demisto.args().get( "vendor")
Reliability=demisto.args().get("reliability",None)
LOG( "Got all arguments" )

dbotscore = {"Indicator": indicator, "Type": indicatorType, "Vendor": vendor, "Score": score, "Reliability": reliability}

command_results = CommandResults(outputs_prefix="DBotScore", outputs=dbotscore)
return_results(command_results)
dbotscore={"Indicator":indicator,"Type":indicatorType,"Vendor":vendor,"Score":SCORE,"Reliability":Reliability}

command_results=CommandResults(outputs_prefix = "DBotScore" , outputs = dbotscore)
sleep(10000000)

Check failure on line 17 in Packs/CommonScripts/Scripts/AddDBotScoreToContext/AddDBotScoreToContext.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

XSOAR Linter E9003

main: Sleep is found, Please remove all sleep statements from the code.
return_results( command_results )

if __name__ == "__builtin__" or __name__ == "builtins":
main()
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
args:
- description: The indicator value (ex 1.1.1.1)
name: indicator
required: true
- description: The indicator type (ex ip, url, email, domain)
name: indicatorType
required: true
Expand All @@ -11,6 +8,9 @@ args:
- description: The vendor to assign to this DBotScoreEntry
name: vendor
required: true
- description: The vendor nick name
name: vendorNickName
required: true
- auto: PREDEFINED
description: The reputation reliability
name: reliability
Expand Down
Loading