clear_ldap_state() deletes an object from the DIT that doesn't exist
on the first run, this is OK but fails with errexit enabled.
Change-Id: I3b881eedc891caa6b2dfd5913e43f3babcfa7d47
| ... | ... |
@@ -154,7 +154,7 @@ function stop_ldap {
|
| 154 | 154 |
|
| 155 | 155 |
# clear_ldap_state() - Clear LDAP State |
| 156 | 156 |
function clear_ldap_state {
|
| 157 |
- ldapdelete -x -w $LDAP_PASSWORD -D "$LDAP_MANAGER_DN" -H $LDAP_URL -r "$LDAP_BASE_DN" |
|
| 157 |
+ ldapdelete -x -w $LDAP_PASSWORD -D "$LDAP_MANAGER_DN" -H $LDAP_URL -r "$LDAP_BASE_DN" || : |
|
| 158 | 158 |
} |
| 159 | 159 |
|
| 160 | 160 |
# Restore xtrace |