Skip to content

Update websocket_client dependency version#526

Merged
JacobCallahan merged 1 commit intomasterfrom
JacobCallahan-depadjust
Feb 10, 2026
Merged

Update websocket_client dependency version#526
JacobCallahan merged 1 commit intomasterfrom
JacobCallahan-depadjust

Conversation

@JacobCallahan
Copy link
Contributor

attempt to pin the websocket dependency to a higher version

@JacobCallahan JacobCallahan force-pushed the JacobCallahan-depadjust branch 3 times, most recently from effdcc7 to 69ab2e2 Compare February 9, 2026 20:34
@JacobCallahan JacobCallahan marked this pull request as ready for review February 9, 2026 22:28
Copilot AI review requested due to automatic review settings February 9, 2026 22:28
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

This PR updates dependencies and provider integrations, including Azure subscription management imports and OpenShift client handling, likely to accommodate newer upstream library changes.

Changes:

  • Switch Azure SubscriptionClient/SubscriptionState imports to azure-mgmt-subscription and add the corresponding dependency.
  • Relax the openshift dependency constraint and add a guarded import + explicit failure in the OpenShift connection path when the legacy static client API is unavailable.

Reviewed changes

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

File Description
wrapanapi/systems/msazure.py Updates Azure subscription-related imports to use the newer subscription management package.
wrapanapi/systems/container/rhopenshift.py Adds guarded import for legacy openshift.client and raises a clearer error when it’s not available.
pyproject.toml Adds azure-mgmt-subscription dependency and changes openshift version constraint.

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

@tpapaioa tpapaioa self-requested a review February 10, 2026 00:15
Copy link

@tpapaioa tpapaioa left a comment

Choose a reason for hiding this comment

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

LGTM, other than the 2 suggestions from Copilot.

Configuration:
- Implement a try-except block for importing the `openshift.client` module to
  gracefully handle its removal in `openshift` versions >= 0.13.
- Introduce a `_OPENSHIFT_CLIENT_AVAILABLE` flag to track the success of the
  `openshift.client` import.
- Enhance the `_connect` method to raise an `ImportError` with a detailed message
  if the `openshift.client` module is not available. This guides users on
  required `openshift` library versions or migration to the dynamic client API,
  ensuring better compatibility with varying library versions.

Refactoring:
- Reordered import statements in `msazure.py` for `StorageManagementClient` for
  consistency.
@JacobCallahan JacobCallahan force-pushed the JacobCallahan-depadjust branch from 69ab2e2 to cef774a Compare February 10, 2026 14:33
@JacobCallahan
Copy link
Contributor Author

JacobCallahan commented Feb 10, 2026

Updated the message based on copilot's recommendation

@JacobCallahan JacobCallahan merged commit 0f454b3 into master Feb 10, 2026
4 checks passed
@JacobCallahan JacobCallahan deleted the JacobCallahan-depadjust branch February 10, 2026 19:40
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