-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
browseable share parameter should only be set if specified to be "no" #127
Comments
Perhaps this simple change would already fix this? |
Hmm, you bring up an excellent point! However, it's more of a documentation issue. I know it's confusing but in this case, the So, given this template: {% if share.browseable is defined and share.browseable %}
browseable = {{ share.browseable | ternary('yes', 'no') }}
{% endif %} If browseable equals That being said, I am now very confused about what would be better: to change everything to a Boolean, and have that value of |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! |
Hey @vladgh - thanks for this! I initially filled in false since that was my intuition based on using the other variables. Then I noticed it didn't work and used "no" which also didn't work. I also tried 'no' and no and in all these cases I can see My 2 cents: I would convert false/no and true/yes to the respective yes/no string and write it to the browseable entry. Thanks! |
I think I figured out a way to fix this true/false/yes/no in the playbooks and templates. As of now, if the variable is a quoted 'no', it will act as a true statement because it is a valid string. So, the clean and simple way for this to work is to sanitize the inputs and defaults to always output just a browseable = {{ share.browseable | bool | ternary('yes', 'no') }} |
Currently, the
browseable
andbrowsable
share parameters are only set insmb.conf
if their value isyes
and thus it cannot be set tono
.This is undesirable, because the value of
browseable
defaults toyes
, so settingyes
is never useful. The only value that is of use isno
.The text was updated successfully, but these errors were encountered: