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

http:HTTPBasicAuth: Help string reference to not defined namevar #185

Open
frlan opened this issue Aug 12, 2024 · 0 comments
Open

http:HTTPBasicAuth: Help string reference to not defined namevar #185

frlan opened this issue Aug 12, 2024 · 0 comments

Comments

@frlan
Copy link
Member

frlan commented Aug 12, 2024

Help text says:

    Usage::

        from batou_ext.http import HTTPBasicAuth

        self += batou_ext.http.HTTPBasicAuth(
            "myauth",
            username="joe",
            password="secret",
            basic_auth_string="joe:$apr1$Ma0Fc6pW$Kl5dV4ecBXH12gDieRHVq.")

env_name, which this is referring to, is not defined as namevar leading into

Traceback (simplified, most recent call last):
  File "/xxx/deployment/components/mail/component.py", line 19, in configure
    self += batou_ext.http.HTTPBasicAuth(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/xxx/deployment/.appenv/b8144391/lib/python3.11/site-packages/batou/component.py", line 216, in __init__
    raise ValueError("Namevar is undefined for this component.")
@frlan frlan changed the title http:HTTPBasicAuth: Help string referce to not defined namevar http:HTTPBasicAuth: Help string reference to not defined namevar Aug 12, 2024
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

No branches or pull requests

1 participant