Fix 14 tool bugs: capability_check tool_name, quality_gate pipefail, 12 doc param fixes, 3 test-suite fixes
This commit is contained in:
@@ -5,7 +5,7 @@ import yaml
|
||||
import os
|
||||
|
||||
class CapabilityCheck(Tool):
|
||||
async def execute(self, plugin_dir: str = "", **kwargs):
|
||||
async def execute(self, plugin_dir: str = "", tool_name: str = "", **kwargs):
|
||||
if not plugin_dir:
|
||||
plugin_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
config_path = os.path.join(plugin_dir, "default_config.yaml")
|
||||
@@ -14,5 +14,9 @@ class CapabilityCheck(Tool):
|
||||
config = yaml.safe_load(f)
|
||||
except (FileNotFoundError, yaml.YAMLError) as e:
|
||||
config = {}
|
||||
if tool_name:
|
||||
from usr.plugins.a0_software_orchestrator.helpers.tool_capabilities import check_tool
|
||||
result = check_tool(tool_name)
|
||||
return Response(message=str(result), break_loop=False)
|
||||
report = generate_capability_report(config)
|
||||
return Response(message=str(report), break_loop=False)
|
||||
|
||||
Reference in New Issue
Block a user