-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run black linter, fix unit tests and validators (#1857)
- Loading branch information
1 parent
d53b0b0
commit 2dbae4d
Showing
11 changed files
with
76 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
plugins/armorblox/icon_armorblox/actions/get_remediation_action/action.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import insightconnect_plugin_runtime | ||
from .schema import GetRemediationActionInput, GetRemediationActionOutput, Input, Output, Component | ||
|
||
# Custom imports below | ||
|
||
|
||
class GetRemediationAction(insightconnect_plugin_runtime.Action): | ||
|
||
def __init__(self): | ||
super(self.__class__, self).__init__( | ||
name='get_remediation_action', | ||
description=Component.DESCRIPTION, | ||
input=GetRemediationActionInput(), | ||
output=GetRemediationActionOutput()) | ||
name="get_remediation_action", | ||
description=Component.DESCRIPTION, | ||
input=GetRemediationActionInput(), | ||
output=GetRemediationActionOutput(), | ||
) | ||
|
||
def run(self, params={}): | ||
remediation_details = self.connection.api.get_remediation_action(params.get(Input.INCIDENT_ID)) | ||
return {Output.REMEDIATION_DETAILS: remediation_details} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 14 additions & 7 deletions
21
plugins/armorblox/icon_armorblox/triggers/get_incidents/trigger.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# List third-party dependencies here, separated by newlines. | ||
# All dependencies must be version-pinned, eg. requests==1.2.0 | ||
# See: https://pip.pypa.io/en/stable/user_guide/#requirements-files | ||
armorblox-sdk==0.1.4 | ||
armorblox-sdk==0.1.4 | ||
parameterized==0.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.