Skip to content

Commit

Permalink
#549 Rename hive_url to thehive_url
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 8, 2020
1 parent a155548 commit 40cb3bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions analyzers/KnowBe4/KnowBe4.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
],
"command": "KnowBe4/KnowBe4.py",
"baseConfig": "KnowBe4",
"configurationItems": [
{
"configurationItems": [{
"name": "api_url",
"description": "Base API url",
"type": "string",
Expand All @@ -20,7 +19,7 @@
"defaultValue": "https://api.events.knowbe4.com/events"
},
{
"name": "hive_url",
"name": "thehive_url",
"description": "Specify The Hive Instance URL",
"type": "string",
"multi": false,
Expand Down Expand Up @@ -56,4 +55,4 @@
"defaultValue": 10
}
]
}
}
6 changes: 3 additions & 3 deletions analyzers/KnowBe4/KnowBe4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def __init__(self):
Responder.__init__(self)
self.api_url = self.get_param(
'config.api_url', None, "Base URL Missing")
self.hive_url = self.get_param(
'config.hive_url', None, "Hive URL Missing")
self.thehive_url = self.get_param(
'config.thehive_url', None, "TheHive URL Missing")
self.api_key = self.get_param(
'config.api_key', None, "API Key Missing")
self.event_type = self.get_param(
Expand Down Expand Up @@ -39,7 +39,7 @@ def run(self):
}

thehive_case = '{}/index.html#!/case/{}/details'.format(
self.hive_url, self.get_param('data.case._routing'))
self.thehive_url, self.get_param('data.case._routing'))

description = 'TheHive Case: {}\n Description: {}\n URL: {}'.format(self.get_param(
'data.case.title'), self.get_param('data.case.description'), thehive_case)
Expand Down

0 comments on commit 40cb3bd

Please sign in to comment.