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 issue where an incorrect amount of named arguments cause an error in the FileTransformationsUtility #269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwillebrands
Copy link

This function returns an error when an (incorrect) transformation rule is passed in trough the FileTransformV2 task.

Working rules:

-transform MyTransform.xdt -xml MyConfig.xml
-transform MyTransform.xdt -xml MyConfig.xml -result MyConfig.xml

Broken rule

-transform MyTransform.xdt -xml MyConfig.xml -whateverparam test

The code assumes that when there are 3 arguments, that the argument named result is always passed, which in the above case isn't so. It should just use the arguments based on the names intsead of the count.

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