@@ -173,7 +173,7 @@ More advanced template strings may be constructed, such as:
173
173
"objectClass": "user",
174
174
"_import_to_mo_": "true",
175
175
"given_name": "{{ldap.givenName or ldap.name|splitlast|first}}",
176
- "uuid": "{{ employee_uuid or NONE }}"
176
+ "uuid": "{{ employee_uuid or '' }}"
177
177
}
178
178
}
179
179
[...]
@@ -226,7 +226,7 @@ Converting the other way around can be done as follows:
226
226
"type": "address",
227
227
"validity": "{{ dict(from_date = ldap.mail_validity_from or now()|mo_datestring) }}",
228
228
"address_type": "{{ dict(uuid=get_employee_address_type_uuid('EmailEmployee')) }}",
229
- "person": "{{ dict(uuid=employee_uuid or NONE ) }}"
229
+ "person": "{{ dict(uuid=employee_uuid or '' ) }}"
230
230
},
231
231
}
232
232
[...]
@@ -278,7 +278,7 @@ And the other way around:
278
278
"LocationUnit": {
279
279
"objectClass": "ramodels.mo.details.address.Address",
280
280
"_import_to_mo_": "true",
281
- "value": "{{ ldap.postalAddress or NONE }}",
281
+ "value": "{{ ldap.postalAddress or '' }}",
282
282
"type": "address",
283
283
"validity": "{{ dict(from_date=now()|mo_datestring) }}",
284
284
"address_type": "{{ dict(uuid=get_org_unit_address_type_uuid('LocationUnit')) }}",
@@ -324,7 +324,7 @@ And the other way around:
324
324
"user_key": "{{ ldap.msSFU30Name or None }}",
325
325
"itsystem": "{{ get_it_system_uuid('Active Directory') }}",
326
326
"validity": "{{ dict(from_date=now()|mo_datestring) }}",
327
- "person": "{{ employee_uuid or NONE }}"
327
+ "person": "{{ employee_uuid or '' }}"
328
328
}
329
329
}
330
330
[...]
@@ -376,7 +376,7 @@ Converting the other way around can be done like this:
376
376
"engagement_type": "{{ dict(uuid=get_engagement_type_uuid(ldap.employeeType)) }}",
377
377
"user_key": "{{ ldap.departmentNumber or uuid4() }}",
378
378
"validity": "{{ dict(from_date=now()|mo_datestring) }}",
379
- "person": "{{ dict(uuid=employee_uuid or NONE ) }}",
379
+ "person": "{{ dict(uuid=employee_uuid or '' ) }}",
380
380
"primary": "{{ dict(uuid=get_primary_type_uuid('primary')) }}"
381
381
}
382
382
}
@@ -493,7 +493,7 @@ And the other way around:
493
493
"user_key": "{{ ldap.distinguishedName }}",
494
494
"itsystem": "{{ get_it_system_uuid('Active Directory') }}",
495
495
"validity": "{{ dict(from_date=now()|mo_datestring) }}",
496
- "person": "{{ employee_uuid or NONE }}"
496
+ "person": "{{ employee_uuid or '' }}"
497
497
}
498
498
}
499
499
[...]
@@ -535,7 +535,7 @@ And the other way around:
535
535
"objectClass": "ramodels.mo.employee.Employee",
536
536
"_import_to_mo_": "true",
537
537
"cpr_number": "{{ldap.employeeID|strip_non_digits}}",
538
- "uuid": "{{ employee_uuid or NONE }}"
538
+ "uuid": "{{ employee_uuid or '' }}"
539
539
[...]
540
540
},
541
541
}
0 commit comments