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

.plzconfig key with empty value #3095

Closed
izissise opened this issue Mar 6, 2024 · 4 comments · Fixed by #3096
Closed

.plzconfig key with empty value #3095

izissise opened this issue Mar 6, 2024 · 4 comments · Fixed by #3096

Comments

@izissise
Copy link
Contributor

izissise commented Mar 6, 2024

Before v17.8.1, I was able to have empty value for a key in .plzconfig and check its emptyness:

[buildconfig]
XXXX =
BBB = hello
if CONFIG.XXXX:
...

But now (v17.8.1) I get the following error:

error: Config has no such property XXXX

I this intended behavior? Is there a workaround to test if a key is present in config?

@peterebden
Copy link
Member

No it's not intended, what you were doing is legit - this seems to be #3092 (which wasn't supposed to tag the release, but it looks like the build before flaked).

@izissise
Copy link
Contributor Author

izissise commented Mar 6, 2024

As a workaround

if ("XXXX" in CONFIG):

@izissise
Copy link
Contributor Author

izissise commented Mar 6, 2024

Thanks, I'll wait for 17.8.2 then :)

@izissise izissise closed this as completed Mar 6, 2024
@peterebden peterebden reopened this Mar 6, 2024
@peterebden
Copy link
Member

Let's use this to track the fix :)

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 a pull request may close this issue.

2 participants