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

common: make get_redis_connection to accept dict(opts) #3186

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

praiskup
Copy link
Member

The check like:

if hasattr(opts, "redis_port"):
    kwargs["port"] = opts.redis_port

Can not work with dict() objects. The hasattr() actually doesn't work this way.

See: praiskup/resalloc#154

The check like:

    if hasattr(opts, "redis_port"):
        kwargs["port"] = opts.redis_port

Can not work with dict() objects.  The hasattr() actually doesn't work
this way.

See: praiskup/resalloc#154
@praiskup praiskup merged commit 08df431 into fedora-copr:main Mar 15, 2024
7 checks passed
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.

2 participants