ElektraInitiative / libelektra

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.
https://www.libelektra.org
BSD 3-Clause "New" or "Revised" License
208 stars 123 forks source link

Convert with plugin augeas lens=Hosts.lns to simpleini #1215

Closed markus2330 closed 3 years ago

markus2330 commented 7 years ago

I tried to convert a snippet on the website, but it seems like augeas adds the parent key with the temporary file to the keyset, but should not do that.

Used plugins

Input:
- Plugin: augeas lens=Hosts.lns
- Format: none
- Additional config: 
Output:
- Plugin: simpleini
- Format: ini
- Additional config: % : %

Input configuration

128.0.0.1 localhost

Last output configuration

system = /tmp/2158-4829-518d-49b2
1 = 
1/canonical = localhost
1/ipaddr = 128.0.0.1

Additional information

Namoshek commented 7 years ago

I noticed this also during testing, but as it does not happen for all lenses, I thought it might be lens-dependend.

markus2330 commented 7 years ago

If the parent key itself is actually used the issue might be not visible.

But the file name should never show up in the keyset (for non-debug plugins).

stale[bot] commented 4 years ago

I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

Namoshek commented 4 years ago

Sorry, that was not intentional. Misclicked while still being half asleep. :)

markus2330 commented 4 years ago

I think we can actually close it unless someone wants to continue to work on the snippet converter...