Skip to content

fix: Reject env with empty name - #868

Open
tuxmea wants to merge 3 commits into
mainfrom
fix_reject_env_empty_name
Open

tuxmea wants to merge 3 commits into
mainfrom
fix_reject_env_empty_name

Conversation

@tuxmea

@tuxmea tuxmea commented Jul 30, 2026

Copy link
Copy Markdown
Member

It can happen, that PuppetDB returns environments with an empty name.

curl http://localhost:8080/pdb/query/v4/environments | python3 -m json.tool

Result:

[
    {
        "name": "production"
    },
    {
        "name": ""
    },
    {
    ...

This PR removes environemnts with empty name.

@tuxmea
tuxmea requested a review from a team as a code owner July 30, 2026 11:27
tuxmea added 2 commits August 31, 2026 10:41
It can happen, that PuppetDB returns environments with an empty name.

```command
curl http://localhost:8080/pdb/query/v4/environments | python3 -m json.tool
```

Result:

```json
[
    {
        "name": "production"
    },
    {
        "name": ""
    },
    {
    ...
```

This PR removes environemnts with empty name.

Signed-off-by: Martin Alfke <ma@betadots.de>
Signed-off-by: Martin Alfke <ma@betadots.de>
@tuxmea
tuxmea force-pushed the fix_reject_env_empty_name branch from 7d074ab to 487920f Compare August 31, 2026 08:41
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.

1 participant