Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs migrate has an invalid filter #2123

Open
allmightyspiff opened this issue Jan 10, 2024 · 0 comments
Open

vs migrate has an invalid filter #2123

allmightyspiff opened this issue Jan 10, 2024 · 0 comments
Assignees
Labels

Comments

@allmightyspiff
Copy link
Member

Filtering off pendingMigrationFlag doesn't look to actually work.

$> slcli call-api SoftLayer_Account getVirtualGuests --mask="mask[id,hostname,pendingMigrationFlag]" --json-filter='{"virtualGuests":{"pendingMigrationFlag":{"operation":0}}}'
┌──────────────────┬───────────┬──────────────────────┐
│     hostname     │    id     │ pendingMigrationFlag │
├──────────────────┼───────────┼──────────────────────┤
│       adns       │ 100250634 │        False         │
│ cgallo-bnpp-test │ 139920549 │        False         │
│       cp4d       │ 133871998 │        False         │
│    easerverh     │ 132364928 │        False         │
│     haproxy      │ 133986540 │        False         │
│     instana      │ 132690142 │         True         │
│      pxe-1       │ 133926476 │        False         │
│     reserved     │ 102396266 │        False         │
└──────────────────┴───────────┴──────────────────────┘
 slcli call-api SoftLayer_Account getVirtualGuests --mask="mask[id,hostname,pendingMigrationFlag]" --json-filter='{"virtualGuests":{"pendingMigrationFlag":{"operation":1}}}'
[]

$> slcli -v vs migrate
Calling: SoftLayer_Account::getVirtualGuests(id=None, mask='mask[ id, hostname, domain, datacenter, pendingMigrationFlag, powerState, primaryIpAddress,primaryBackendIpAddress, dedicatedHost ]', filter='{'virtualGuests': {'pendingMigrationFlag': {'operation': 1}}}', args=(), limit=100, offset=0)
No guests require migration at this time

@allmightyspiff allmightyspiff self-assigned this Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant