Closed Daenou closed 1 year ago
I couldn't figure out where in udm-cli parsing with the :
delimiter happens, but I was able to figure out how to provide the parsed options to python-udm directly from ansible (extended with en_US translation to demonstrate the syntax):
---
- name: Test UDM
hosts: testhost
tasks:
- name: UDM
univention.ucs_modules.univention_directory_manager:
module: "settings/extended_attribute"
dn: "cn=owncloudgroup,cn=custom attributes,cn=univention,dc=school,dc=ch"
position: "cn=custom attributes,cn=univention,dc=school,dc=ch"
set_properties:
# ...
- property: translationGroupName
value: [['de_DE', 'school-Cloud'], ['en_US', 'school Cloud']]
- property: translationLongDescription
value: [['de_DE', 'school-Cloud aktivieren, 0 oder 1 verwenden (customAttributeOwnCloudGroup)'], ['en_US', 'Enable school cloud, use 0 or 1 (customAttributeOwnCloudGroup)']]
- property: translationShortDescription
value: [['de_DE', 'customAttributeOwnCloudGroup'], ['en_US', 'customAttributeOwnCloudGroup']]
A documentation PR will follow.
UDM doesn't parse :
.
The CLI accepts e.g. --append translationLongDescription='"de_DE" "school-Cloud aktivieren, 0 oder 1 verwenden (customAttributeOwnCloudGroup)"'
Documentation has been improved, closing.
When trying to set a value to a translation* udm property I get an error.
Code:
No error in check mode, but as soon as I run it without I get the following error:
But this is the official syntax that works with udm.