Skip to content

Commit

Permalink
Linux.RHEL.Packages: Silence dnf output (#2703)
Browse files Browse the repository at this point in the history
On an "unregistered" RHEL9 test instance, dnf tells us all sorts of
nonsense at start:

```
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.
```

The last line bleeds into the package list. Adding the `--quiet` switch
fixes this.
  • Loading branch information
hillu authored and scudette committed May 24, 2023
1 parent a3fc6c9 commit 57284ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artifacts/definitions/Linux/RHEL/Packages.yaml
Expand Up @@ -14,6 +14,6 @@ sources:
query: |
SELECT * FROM foreach(row={
SELECT grok(grok=DNFGrokExpression, data=Stdout) AS Parsed
FROM execve(argv=["dnf", "list", "installed"], sep="\n")
FROM execve(argv=["dnf", "--quiet", "list", "installed"], sep="\n")
WHERE count() > 2
}, column="Parsed")

0 comments on commit 57284ec

Please sign in to comment.