Skip to content
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

Fix policy editor script field #133

Merged
merged 1 commit into from
Mar 26, 2023
Merged

Conversation

j-bro
Copy link
Contributor

@j-bro j-bro commented Jan 8, 2023

Fix the field name for the policy editor script field for before & after folder/snapshot actions.

Instead of using the script field, the path field was being used. This caused issues where using a script body value would fail becuase path expects only an executable file, not the contents of a sh/cmd script. Using the script field should properly allow an inline script to be used.

See API server reference for ActionCommand: https://github.com/kopia/kopia/blame/ba938cf58cc8db26eb373f6ddff5fc0e9c07af15/snapshot/policy/actions_policy.go#L23-L33

Copy link

@bkmeneguello bkmeneguello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This affects me too!

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.

3 participants