Use true/false and not True/False for YAML::XS to map it to bool

This commit is contained in:
Daniel Berteaud 2023-10-25 11:18:38 +02:00
parent 3cf76ea6bb
commit 4c071925d7
2 changed files with 6 additions and 6 deletions

View File

@ -30,13 +30,13 @@ dav:
user: odoo2carddav user: odoo2carddav
password: <password for the dav server> password: <password for the dav server>
# If true, then contacts which exists on the carddav server, but not in odoo will be deleted # If true, then contacts which exists on the carddav server, but not in odoo will be deleted
delete: True delete: true
path: path:
# Local directory where the script will build vcards. Defaults is to use mkdtemp using /tmp/odoo2carddav.XXXXX as template # Local directory where the script will build vcards. Defaults is to use mkdtemp using /tmp/odoo2carddav.XXXXX as template
workdir: /tmp/odoo2carddav workdir: /tmp/odoo2carddav
# If True, vcards won't be deleted from the workdir when the script is finished # If True, vcards won't be deleted from the workdir when the script is finished
keep_vcard: True keep_vcard: true
``` ```
If odoo.password or dav.password is not defined, it'll be prompted when you run the script. If odoo.password or dav.password is not defined, it'll be prompted when you run the script.

View File

@ -12,8 +12,8 @@ odoo:
database: odoo database: odoo
# A list of filters to limit contacts returned by odoo # A list of filters to limit contacts returned by odoo
# Note : filters can only be set in a config file (not available as env var or cli arg) # Note : filters can only be set in a config file (not available as env var or cli arg)
# Also, if you need to set a False value, use 0, else perl will interpret False as a string, # Also, if you need to set a false value, use 0, else perl will interpret false as a string,
# which will evaluate as True (for example, use ["is_company", "=", 0]) # which will evaluate as true (for example, use ["is_company", "=", 0])
filters: filters:
- ["country_code", "=", "FR"] - ["country_code", "=", "FR"]
- ["name", "ilike", "berteaud"] - ["name", "ilike", "berteaud"]
@ -25,11 +25,11 @@ dav:
user: odoo2carddav user: odoo2carddav
password: <password for the dav server> password: <password for the dav server>
# If true, then contacts which exists on the carddav server, but not in odoo will be deleted # If true, then contacts which exists on the carddav server, but not in odoo will be deleted
delete: True delete: true
path: path:
# Local directory where the script will build vcards. Defaults is to use mkdtemp using /tmp/odoo2carddav.XXXXX as template # Local directory where the script will build vcards. Defaults is to use mkdtemp using /tmp/odoo2carddav.XXXXX as template
workdir: /tmp/odoo2carddav workdir: /tmp/odoo2carddav
# If True, vcards won't be deleted from the workdir when the script is finished # If True, vcards won't be deleted from the workdir when the script is finished
keep_vcard: True keep_vcard: true