Skip to content

fix: accept alternate mirror profile success response#3

Open
sregister wants to merge 1 commit intointel:mainfrom
sregister:feature/mirror-profile-success-string
Open

fix: accept alternate mirror profile success response#3
sregister wants to merge 1 commit intointel:mainfrom
sregister:feature/mirror-profile-success-string

Conversation

@sregister
Copy link

On different IPU control-plane versions, adding a mirror profile can return different success messages; accept both known success outputs.

On different IPU control-plane versions, adding a mirror profile can return
different success messages; accept both known success outputs.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the CliClient.create_mirror_profile success detection to handle multiple known “success” outputs returned by different IPU control-plane versions.

Changes:

  • Accept either "command succeeded" or "random mirror profile set" as success markers for create_mirror_profile.
  • Add unit tests covering the alternate success message and a failure message raising CliClientException.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
mfd_cli_client/base.py Expands mirror profile success detection using a shared set of success markers.
tests/unit/test_mfd_cli_client/test_base.py Adds tests for alternate success output and verifies failure output raises an exception.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sregister
Copy link
Author

@dhiraj3880 Can you take a look at this

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.

3 participants