Skip to content

bug(tui): allows an invalid combined instance update and reboot request #5089

Description

@williampnvidia

Problem

The instance update TUI allows a user to change an instance attribute, such as its operating system, and request an immediate reboot in the same operation.

The resulting request is rejected by the API:

Error: updating instance: API error 400: Failed to validate Instance update request data
Details: {"triggerReboot":"reboot cannot be triggered if Instance attributes are being updated in the same request"}

Expected behavior

The TUI should prevent this invalid combination.

If the user changes the name, description, operating system, or SSH key groups, the TUI should apply those changes without offering reboot options and tell the user to run instance reboot afterward.

Reboot-only requests should continue to work normally.

Testing

Add coverage confirming that the TUI cannot combine attribute changes and reboot options in one request.

Metadata

Metadata

Assignees

Labels

nicocliItems pertaining to NICo CLI or TUI

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions