summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-ldap-updater
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-09-17 23:18:09 -0400
committerSimo Sorce <ssorce@redhat.com>2008-09-19 16:04:10 -0400
commit687a77a3bfa7525c2ccfc32f82113cbee0ba607d (patch)
tree46918dd7d96d1024b2661c539455dcbf4856a0f5 /ipa-server/ipa-ldap-updater
parent67718c050dbee691ff0317010c3669b41fe3decb (diff)
downloadfreeipa-687a77a3bfa7525c2ccfc32f82113cbee0ba607d.tar.gz
freeipa-687a77a3bfa7525c2ccfc32f82113cbee0ba607d.tar.xz
freeipa-687a77a3bfa7525c2ccfc32f82113cbee0ba607d.zip
Add detection to the update tool to detect when it would apply changes.
Remove SUP name from RFC2307bis.update to match FDS
Diffstat (limited to 'ipa-server/ipa-ldap-updater')
-rwxr-xr-xipa-server/ipa-ldap-updater7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipa-server/ipa-ldap-updater b/ipa-server/ipa-ldap-updater
index 38ccf6670..90119950e 100755
--- a/ipa-server/ipa-ldap-updater
+++ b/ipa-server/ipa-ldap-updater
@@ -99,9 +99,12 @@ def main():
else:
files = args
- ld.update(files)
+ modified = ld.update(files)
- return 0
+ if modified and options.test:
+ return 2
+ else:
+ return 0
try:
if __name__ == "__main__":