-
Notifications
You must be signed in to change notification settings - Fork 299
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
Questions regarding LYPLG_TYPE_STORE_ONLY flag with union #2341
Comments
I do not think the flag is compatible with the definition of the |
Hi Michal, To give you more context, we use a union with a specific type to encrypt data. For instance, let's say that we want to encrypt a string password field.
We were checking the LYPLG_TYPE_STORE_ONLY flag to avoid encrypting in some use cases, |
I am sorry but you were misusing the flag for additional functionality, which always has a risk of stopping to work after an update. I am not sure what exactly decides when to encrypt the password but sysrepo supports changing the value before storing it or you can define 2 leaves (in a |
Thank you for your reply. |
Yes, that is what I meant. |
thank you Michal. |
Hi,
Since this commit:
b89b5ae
is there another way to reach a store callback of a plugin with the LYPLG_TYPE_STORE_ONLY flag?
For instance:
mytype1 is implemented in a plugin. Before the store callback was called with this flag.
This was helpful when loading a known valid configuration.
The previous behavior was fine for me.
I had a similar behavior before also with list keys, let's say that the name is a list:
The store callback was called twice once with the flag and once without.
Now the flag is not present anymore.
Regards
The text was updated successfully, but these errors were encountered: