Skip to content

Comments

Fix default_api_server setter#140

Closed
jramcast wants to merge 1 commit intoopenshift:mainfrom
jramcast:patch-1
Closed

Fix default_api_server setter#140
jramcast wants to merge 1 commit intoopenshift:mainfrom
jramcast:patch-1

Conversation

@jramcast
Copy link

This PR modifies the set_default_api_url function to use context.default_api_server instead of context.default_api_url.

The default_api_url attribute does not exist in the context object, and is not used anywhere else in the code. However, context.default_api_server is used in Context#get_api_url.

Alternative solution

Modify the ThreadLocalContext class to use api_url instead of default_api_server (to be consistent, we should also rename the OPENSHIFT_CLIENT_PYTHON_DEFAULT_API_SERVER variable to OPENSHIFT_CLIENT_PYTHON_DEFAULT_API_URL. The Context#get_api_url method should be updated too.

Let me know if you prefer this solution.

This PR modifies the `set_default_api_url` function to use `context.default_api_server` instead of `context.default_api_url`.

The `default_api_url` attribute does not exist in the `context` object, and is not used anywhere else in the code. However, `context.default_api_server` is used in `Context#get_api_url`.

== Alternative solution

Modify the `ThreadLocalContext` class to use `api_url` instead of `default_api_server` (to be consisten, we should also rename the `OPENSHIFT_CLIENT_PYTHON_DEFAULT_API_SERVER` variable to `OPENSHIFT_CLIENT_PYTHON_DEFAULT_API_URL`. Let me know if you prefer this solution.
@openshift-ci
Copy link

openshift-ci bot commented Apr 27, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jramcast
Once this PR has been reviewed and has the lgtm label, please assign jupierce for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 27, 2023
@openshift-ci
Copy link

openshift-ci bot commented Apr 27, 2023

Hi @jramcast. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@bradmwilliams
Copy link
Contributor

/close
Superseded by #141

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 27, 2023
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this Jun 27, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jun 27, 2023

@bradmwilliams: Closed this PR.

Details

In response to this:

/close
Superseded by #141

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants