Skip to content

19529 fix CLI running of scripts #19698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

19529 fix CLI running of scripts #19698

wants to merge 7 commits into from

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Jun 12, 2025

Fixes: #19529

In the file storage case (non Cloud storage) the full path (including SCRIPT_ROOT) was getting saved to the ManagedFile. This issue was masked as the UI Script code handles that condition correctly, but it causes problems when running via the CLI or API.

Also includes a migration to remove the full-path if it exists in Script files, but is skipped if using Cloud storage. Cloud storage scripts are not effected.

@arthanson arthanson changed the title DRAFT: 19529 fix CLI running of scripts 19529 fix CLI running of scripts Jun 12, 2025
@arthanson arthanson marked this pull request as ready for review June 12, 2025 16:43
@arthanson arthanson requested a review from jnovinger June 12, 2025 16:43
@arthanson arthanson requested a review from jnovinger June 13, 2025 22:49
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.

CLI script invocation is broken in NetBox 4.3.1
2 participants