diff --git a/plugins/rapid7_insight_agent/.CHECKSUM b/plugins/rapid7_insight_agent/.CHECKSUM index e4d759d8e6..3dfe3485fe 100644 --- a/plugins/rapid7_insight_agent/.CHECKSUM +++ b/plugins/rapid7_insight_agent/.CHECKSUM @@ -1,5 +1,5 @@ { - "spec": "068f90d6f4a93addc62a6c00ad1aa085", + "spec": "40959d25471f8645178e8e15095f7a3b", "manifest": "fbc1b04c51c6c8816dac6cee216341c2", "setup": "7f65232e4808ae89ad79c06f1b2dc5a2", "schemas": [ diff --git a/plugins/rapid7_insight_agent/help.md b/plugins/rapid7_insight_agent/help.md index 15f7e3cb01..ec65e32867 100644 --- a/plugins/rapid7_insight_agent/help.md +++ b/plugins/rapid7_insight_agent/help.md @@ -461,7 +461,7 @@ Example output: # Version History -* 3.0.2 - Updated to use latest buildpack to address vulnerabilities +* 3.0.2 - Updated to use latest buildpack to address vulnerabilities | Update `Get Agent Details`: extended output to include `agent` field when no assets are found * 3.0.1 - Update 'Get Agent Details' to allow no assets to be returned | SDK bump to latest version * 3.0.0 - Update `Get Agent Details` and `Get All Agents by IP` to return the next page token if more pages are available to search | Update `Get Agent Details` to return agent location details | Initial updates for fedramp compliance | Updated SDK to the latest version * 2.1.2 - Improve logging | Update SDK diff --git a/plugins/rapid7_insight_agent/icon_rapid7_insight_agent/util/graphql_api/api_connection.py b/plugins/rapid7_insight_agent/icon_rapid7_insight_agent/util/graphql_api/api_connection.py index fca57d3df4..133a38386f 100644 --- a/plugins/rapid7_insight_agent/icon_rapid7_insight_agent/util/graphql_api/api_connection.py +++ b/plugins/rapid7_insight_agent/icon_rapid7_insight_agent/util/graphql_api/api_connection.py @@ -383,7 +383,7 @@ def _get_agent(self, agent_input: str, agent_type: str, next_cursor: str = None) return agent, None else: self.logger.info("No assets were found") - return None, None + return {}, None def _get_agents(self, agents_input: List[str]) -> [Tuple[str, dict]]: """ diff --git a/plugins/rapid7_insight_agent/plugin.spec.yaml b/plugins/rapid7_insight_agent/plugin.spec.yaml index be09740d28..7b03b1ed86 100644 --- a/plugins/rapid7_insight_agent/plugin.spec.yaml +++ b/plugins/rapid7_insight_agent/plugin.spec.yaml @@ -28,7 +28,7 @@ links: references: - "[Manage Platform API Keys](https://docs.rapid7.com/insight/managing-platform-api-keys/)" version_history: - - "3.0.2 - Updated to use latest buildpack to address vulnerabilities" + - "3.0.2 - Updated to use latest buildpack to address vulnerabilities | Update `Get Agent Details`: extended output to include `agent` field when no assets are found" - "3.0.1 - Update 'Get Agent Details' to allow no assets to be returned | SDK bump to latest version" - "3.0.0 - Update `Get Agent Details` and `Get All Agents by IP` to return the next page token if more pages are available to search | Update `Get Agent Details` to return agent location details | Initial updates for fedramp compliance | Updated SDK to the latest version" - "2.1.2 - Improve logging | Update SDK"