MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / cost_warning

Function cost_warning

tools/build_starlight_content.py:1021–1032  ·  view source on GitHub ↗
(project: dict)

Source from the content-addressed store, hash-verified

1019
1020
1021def cost_warning(project: dict) -> str:
1022 cloud = ", ".join(item.upper() for item in project["cloud"]) or "no cloud provider"
1023 return f"""<div class="lab-warning">
1024 <strong>Cost and credential stance</strong>
1025 <p>
1026 Cost risk is <strong>{project['cost_risk']}</strong>. Cloud target:
1027 <strong>{escape_html(cloud)}</strong>. Cloud credentials needed:
1028 <strong>{project['needs_cloud_credentials']}</strong>. Always use your own
1029 account, never commit secrets, and confirm cleanup before creating paid
1030 infrastructure.
1031 </p>
1032</div>"""
1033
1034
1035def troubleshooting(project: dict) -> str:

Callers 1

write_project_pagesFunction · 0.85

Calls 1

escape_htmlFunction · 0.85

Tested by

no test coverage detected