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

Tech Debt: Eliminate AgentMode iota type - this is a breaking change! #161

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Nov 16, 2023

We wound up with two iota types for strings like full_control, telemetry_only, and unmanaged:

  • AgentMode / rawAgentMode
  • SystemManagementLevel / systemManagementLevel

This PR eliminates agent mode, converts uses of it to use system management level instead. This conversion required some new error returns in various private polish() methods.

A test broke, due to a different "zero value" in SystemManagementLevel, and testing also revealed that CloudLabs has introduced a new switch type: vmx, so that's been added to our test suite.

The terraform provider will need to be updated to use SystemManagementLevel

Closes #114

Copy link
Collaborator

@bwJuniper bwJuniper left a comment

Choose a reason for hiding this comment

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

A lot of polishing. 🥇

@chrismarget-j chrismarget-j merged commit 76b857d into main Nov 16, 2023
1 check passed
@chrismarget-j chrismarget-j deleted the bug/114-eliminate-agent-mode branch November 16, 2023 22:55
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.

Eliminate AgentMode iota type
2 participants