Skip to content

refactor: import the platform as ascender rather than awx - #16

Open
blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:refactor/import-ascender
Open

blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:refactor/import-ascender

Conversation

@blaipr

@blaipr blaipr commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The two imports awx_migrate.sh.j2 makes to rebuild role parentage name the platform's Python package: awx.main.models.rbac and awx.main.migrations._rbac.

ctrliq/ascender#988 makes every module answer to both names, aliased to one module object rather than imported twice, so this is the same code either way. It is a move off the old name rather than a fix.

Ordering

Needs the Ascender release carrying that alias. This repository installs a pinned ASCENDER_VERSION, so the new path does not resolve before it.

The awx_migrate_ascender role keeps its name. It migrates from AWX, so AWX is the right word.

The sibling change for ascender-install is #247.

The two imports the AWX migration script makes to rebuild role parentage name
the platform's Python package. ctrliq/ascender#988 makes every module answer to
both names, aliased to one module object rather than imported twice, so this is
the same code either way.

Needs the Ascender release carrying that alias, since this repository installs
a pinned ASCENDER_VERSION and the new path does not resolve before it.

The awx_migrate_ascender role keeps its name. It migrates from AWX.
@cigamit

cigamit commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

This will wait until we have released the new Ascender version. A lot of users do a git pull from main for this repo.

@blaipr

blaipr commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Agreed, same as the ascender-install one. ascender.main only resolves in a release carrying ctrliq/ascender#988, so pulling main here ahead of that release would point the migration script at a module the deployed Ascender does not have.

awx.main keeps working indefinitely either way, so there is no cost to holding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants