diff --git a/src/rpdk/core/project.py b/src/rpdk/core/project.py index 52bf3d23..93d61b07 100644 --- a/src/rpdk/core/project.py +++ b/src/rpdk/core/project.py @@ -502,7 +502,7 @@ def submit( cli_metadata = {} try: - cli_metadata = self._plugin.get_plugin_information() + cli_metadata = self._plugin.get_plugin_information(self) except AttributeError: LOG.debug( "Version info is not available for plugins, not writing to metadata file" diff --git a/tests/test_project.py b/tests/test_project.py index 9fb3c90f..121e09d8 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -68,7 +68,11 @@ UPDATE_INPUTS_FILE = "inputs/inputs_1_update.json" INVALID_INPUTS_FILE = "inputs/inputs_1_invalid.json" -PLUGIN_INFORMATION = {"plugin-version": "2.1.3", "plugin-name": "java"} +PLUGIN_INFORMATION = { + "plugin-version": "2.1.3", + "plugin-tool-version": "2.0.8", + "plugin-name": "java", +} @pytest.mark.parametrize("string", ["^[a-z]$", "([a-z])", ".*", "*."]) @@ -801,6 +805,7 @@ def test_submit_dry_run(project): metadata_info = json.loads(zip_file.read(CFN_METADATA_FILENAME).decode("utf-8")) assert "cli-version" in metadata_info assert "plugin-version" in metadata_info + assert "plugin-tool-version" in metadata_info def test_submit_dry_run_modules(project):