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

Re-add ipapython.config.config for backwards compatibilty #515

Closed
wants to merge 1 commit into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Feb 27, 2017

IPAConfig, config and init_config were removed in rev 7b966e8. Ipsilon uses
ipapython.config to get realm, domain and server of an enrolled host. Re-add
a simplified version that reads settings from api.env. init_config() does
not perform DNS discovery.

Depends on PR #492 to get meaningful defaults.

https://fedorahosted.org/freeipa/ticket/6707

Signed-off-by: Christian Heimes cheimes@redhat.com

IPAConfig, config and init_config were removed in rev 7b966e8. Ipsilon uses
ipapython.config to get realm, domain and server of an enrolled host. Re-add
a simplified version that reads settings from api.env. init_config() does
not perform DNS discovery.

Depends on PR freeipa#492 to get meaningful defaults.

https://fedorahosted.org/freeipa/ticket/6707

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@MartinBasti
Copy link
Contributor

IIRC we agreed that there should be warning that this is deprecated and api.env should be used instead.

@tiran
Copy link
Member Author

tiran commented Feb 28, 2017

I can add a deprecation warning after we have agreed upon a new API. What's the official way to get the values w/o requiring credentials?

@HonzaCholasta
Copy link
Contributor

HonzaCholasta commented Mar 1, 2017

Could we please revert to the original IPAConfig implementation rather than wrapping around api.env? I know I'm the one who suggested it, but I have given it some thought and I would rather keep the original behavior intact, and not have to import from ipalib into ipapython.

@tiran
Copy link
Member Author

tiran commented Mar 1, 2017

OK, I'm closing this PR then.

@HonzaCholasta, please open another PR and revert 7b966e8.

@tiran tiran closed this Mar 1, 2017
@tiran tiran added the rejected Pull Request has been rejected label Mar 1, 2017
@tiran tiran deleted the readd_ipaconfig branch March 1, 2017 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
3 participants