-
Notifications
You must be signed in to change notification settings - Fork 66
Invocation Defaults doesn't work for "--users file" #381
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
Comments
[removing last comment] oops, if it's user action maybe would be needed inside adobe_only_user_action. |
It's because multiple args are not parsed from the config file. Currently working on a fix |
Invocation Defaults for user-sync-config now parsed if they are list type correctly. Added small parser for ID to do this.
I don't think you need to do this change as it was not intended to be run along users attribute, but connector one. Here is how I run with command line: Here is how I run with invocation_defaults only: Results in the log are the same. |
The intent is for it to run stand alone as well. On the command line, you can use --users file without using the CSV connector, which is an optional piece. The core of this issue is actually that any key with multiple arguments (including adob_only_user_list, for example) needed to be put in with python list syntax in order to get parsed correctly. With this fix you can use the same values on invocation_defaults with the same syntax as for the command line, which is the natural expectation for the end user. |
I understand your intent for the change. |
Actually the csv connector was already optional with csv inputs - it just helps you customize further. All we're doing here is getting invocation defaults syntax to match the command line |
OK, thanks :) |
Invocation defaults that replace compound arguments (such as users: ['file', 'config-csv\users.csv'] This is documented in the comment block above I'm closing this since the sync tool is working as designed. |
Whoops! My mistake for not realizing that was intended. I scoured the official docs for info at the time, but as you have mentioned - there isn't any, and I totally overlooked the new comments. Thanks for resolving this and making the docs issue! |
When trying to use the users key in user-sync-config.yml in the following way:
For argument --users, the default is 'all'.
users: file users-file.csv
The following error is encountered:
2018-08-13 09:02:48 18248 CRITICAL main - Unknown option "file users-file.csv" for users
The same string works on the command line.
The text was updated successfully, but these errors were encountered: