Skip to content

Conversation

@noahwhite
Copy link
Owner

@noahwhite noahwhite commented Jan 30, 2026

Summary

Fixes the parsing of vultr-cli block-storage get output to correctly extract the INSTANCE ID.

Problem: The script was using grep "ATTACHED TO INSTANCE" but the CLI outputs a table format:

ID                    REGION ID    INSTANCE ID                SIZE GB    ...
8e499d90-...          ewr          afb11f23-...               25         ...

Fix: Use tail -n1 | awk '{print $3}' to extract column 3 (INSTANCE ID) from the data row.

Test plan

  • Verified locally: vultr-cli block-storage get ... | tail -n1 | awk '{print $3}' returns the correct instance ID
  • PR plan workflow passes
  • Deploy succeeds with block storage attachment and verification

The vultr-cli block-storage get command outputs a table format with
INSTANCE ID in column 3. Use tail -n1 | awk '{print $3}' to extract it.
@linear
Copy link

linear bot commented Jan 30, 2026

@noahwhite noahwhite self-assigned this Jan 30, 2026
@noahwhite noahwhite merged commit 4ccd75a into develop Jan 30, 2026
2 checks passed
@noahwhite noahwhite deleted the feature/gho-45-fix-vultr-cli-parsing branch January 30, 2026 06:01
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.

2 participants