Skip to content

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
@jnovinger jnovinger merged commit a9af541 into main Jun 16, 2025
10 checks passed
@jnovinger jnovinger deleted the 19529-cli-script branch June 16, 2025 12:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

3 participants