Skip to content

facts.opkg: add requires_command and stop hardcoding /bin/opkg#1588

Open
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-opkg-requires-command
Open

facts.opkg: add requires_command and stop hardcoding /bin/opkg#1588
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-opkg-requires-command

Conversation

@wowi42
Copy link
Contributor

@wowi42 wowi42 commented Mar 5, 2026

All five opkg fact classes were missing requires_command, causing confusing errors on hosts without opkg. Also replaced hardcoded /bin/opkg paths with just opkg so the command is resolved via PATH. (maybe a big mistake...)

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

All five opkg fact classes were missing requires_command, causing
confusing errors on hosts without opkg. Also replaced hardcoded
/bin/opkg paths with just opkg so the command is resolved via PATH.
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