Skip to content

refactor(devops): extract get_primary_ip() to DRY ip-route-get pattern (#2825)#2932

Closed
mrveiss wants to merge 1 commit intoDev_new_guifrom
fix/issue-2825
Closed

refactor(devops): extract get_primary_ip() to DRY ip-route-get pattern (#2825)#2932
mrveiss wants to merge 1 commit intoDev_new_guifrom
fix/issue-2825

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 30, 2026

Summary

  • Extract get_primary_ip() shell function from 3 inline invocations in install.sh
  • All call sites now use ${OVERRIDE_IP:-$(get_primary_ip)}
  • Future IP detection changes only need one update

Closes #2825

🤖 Generated with Claude Code

#2825)

Three inline ip-route-get invocations in install.sh consolidated into
a single get_primary_ip() helper. All call sites use OVERRIDE_IP fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

⚠️ SSOT Configuration Compliance: Violations Found

Metric Count
Total Violations 4
SSOT Violations (high priority) 3
Other Violations 1

⚠️ 3 values have SSOT config equivalents!

These should be replaced with SSOT config imports:

Python:

from src.config.ssot_config import config
# Use: config.vm.main, config.port.backend, config.backend_url

TypeScript:

import config from '@/config/ssot-config'
// Use: config.vm.main, config.port.backend, config.backendUrl

📖 See SSOT_CONFIG_GUIDE.md for documentation.

@mrveiss mrveiss closed this Mar 30, 2026
@mrveiss mrveiss deleted the fix/issue-2825 branch March 30, 2026 17:34
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.

1 participant