Skip to content

refactor: make every inventory connector a standalone file - #14

Merged
blaipr merged 1 commit into
mainfrom
refactor/standalone-connectors
Oct 26, 2026
Merged

blaipr merged 1 commit into
mainfrom
refactor/standalone-connectors

Conversation

@blaipr

@blaipr blaipr commented Oct 26, 2026

Copy link
Copy Markdown
Member

Inventory connectors should run anywhere a single script can: unified-api, Ascender or another Ansible controller, a cron job. Until now each imported the SDK from the repository root, so a copied script failed on its own.

  • Each of the seven inventory connectors now carries the settings and credential helpers inline, between begin shared helpers / end shared helpers markers, and imports nothing from the repository.
  • unified_connectors/inventory.py is the reference copy; .github/scripts/check-helpers.sh (now in CI) fails when a copy differs, or when an inventory connector imports the SDK.
  • The SDK keeps only the gitops contract (run), still imported by kv.
  • README explains running a connector outside unified-api; CONTRIBUTING and the SDK README describe the rule.

Checked: 82 tests pass; each connector copied alone into an empty folder starts and reports what it is missing; a cisco_ucs copy alone lists blades from a local fake manager; editing one copy makes the check fail.

@blaipr
blaipr merged commit d26720c into main Oct 26, 2026
1 check passed
@blaipr
blaipr deleted the refactor/standalone-connectors branch October 26, 2026 11:52
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