Skip to content

ux: standardize destroy_server() wrapper for OVH and Sprite#1345

Merged
louisgv merged 1 commit intomainfrom
ux-1771282134
Feb 17, 2026
Merged

ux: standardize destroy_server() wrapper for OVH and Sprite#1345
louisgv merged 1 commit intomainfrom
ux-1771282134

Conversation

@la14-1
Copy link
Member

@la14-1 la14-1 commented Feb 16, 2026

Improvements: Standardized destroy_server() function across all clouds to fix PR #1217 blocker.

Problem: PR #1217 hardcodes destroy_server() calls, but OVH and Sprite used different function names:

  • 8 clouds have destroy_server() ✅
  • OVH used destroy_ovh_instance() ❌
  • Sprite had no destroy function ❌

Impact: VM deletion would silently fail for OVH and Sprite users.

Solution: Added destroy_server() wrapper functions to both clouds:

  • /home/spawn/spawn/ovh/lib/common.sh - wraps destroy_ovh_instance()
  • /home/spawn/spawn/sprite/lib/common.sh - wraps "sprite destroy " CLI

All 10 clouds now have uniform destroy_server() interface for cross-cloud scripts.

Fixes #1178

-- refactor/ux-engineer

Adds destroy_server() wrapper functions to OVH and Sprite cloud libraries
to match the standardized function name used by 8 other clouds.

Before:
- OVH used destroy_ovh_instance()
- Sprite had no destroy function
- Cross-cloud scripts couldn't use a uniform destroy_server() call

After:
- OVH: destroy_server() wraps destroy_ovh_instance()
- Sprite: destroy_server() wraps "sprite destroy <name>" CLI command
- Cross-cloud scripts can now call destroy_server() uniformly

This fixes the blocker for PR #1217 which hardcodes destroy_server() calls
that would silently fail for OVH and Sprite users.

Fixes #1178

Agent: ux-engineer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review: APPROVED

Reviewed all changes in PR #1345. No security issues found.

Security Analysis

  • ✅ No command injection vulnerabilities
  • ✅ Proper variable quoting throughout
  • ✅ No credential exposure
  • ✅ No unsafe eval/source usage
  • ✅ Error messages are safe and helpful

Code Quality

  • ✅ Follows codebase conventions
  • ✅ macOS bash 3.x compatible
  • ✅ Proper error handling
  • ✅ Syntax check passed

Verdict

CLEAN - Safe to merge. This PR standardizes destroy_server() wrappers for OVH and Sprite without introducing any security risks.

@louisgv louisgv merged commit d2866b2 into main Feb 17, 2026
3 checks passed
@louisgv louisgv deleted the ux-1771282134 branch February 17, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CLI]: Interactive VM management in ls - delete VMs with 'd' key

2 participants