Spaces:
Running
Running
Update ipmentor/tools.py
Browse files- ipmentor/tools.py +2 -2
ipmentor/tools.py
CHANGED
|
@@ -214,7 +214,7 @@ def generate_diagram(ip_network: str, hosts_list: str) -> str:
|
|
| 214 |
styled_diagram = _style_d2_diagram(base_diagram)
|
| 215 |
|
| 216 |
# Export to SVG
|
| 217 |
-
output_path = _export_to_svg(styled_diagram, "network_diagram.
|
| 218 |
|
| 219 |
return str(output_path)
|
| 220 |
|
|
@@ -269,7 +269,7 @@ def generate_diagram_mcp(ip_network: str, hosts_list: str) -> str:
|
|
| 269 |
styled_diagram = _style_d2_diagram(base_diagram)
|
| 270 |
|
| 271 |
# Export to SVG
|
| 272 |
-
output_path = _export_to_svg(styled_diagram, "network_diagram.
|
| 273 |
|
| 274 |
result = {
|
| 275 |
"success": True,
|
|
|
|
| 214 |
styled_diagram = _style_d2_diagram(base_diagram)
|
| 215 |
|
| 216 |
# Export to SVG
|
| 217 |
+
output_path = _export_to_svg(styled_diagram, "network_diagram.svg")
|
| 218 |
|
| 219 |
return str(output_path)
|
| 220 |
|
|
|
|
| 269 |
styled_diagram = _style_d2_diagram(base_diagram)
|
| 270 |
|
| 271 |
# Export to SVG
|
| 272 |
+
output_path = _export_to_svg(styled_diagram, "network_diagram.svg")
|
| 273 |
|
| 274 |
result = {
|
| 275 |
"success": True,
|