diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-30 09:35:18 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-30 10:25:38 -0400 |
commit | 676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc (patch) | |
tree | 6b1bfb05224fc148e130ced4bb82033f2956f521 | |
parent | 19ba6ead8a376778b68c5d389473bb73c329b1bb (diff) | |
download | freeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.tar.gz freeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.tar.xz freeipa-676c9a8b58c53085215a2a41b3eb0e3a8f4b6fbc.zip |
Gracefully handle running on an unconfigured IPA server
-rwxr-xr-x | ipa-server/ipa-ldap-updater | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/ipa-ldap-updater b/ipa-server/ipa-ldap-updater index 90119950e..f85148e35 100755 --- a/ipa-server/ipa-ldap-updater +++ b/ipa-server/ipa-ldap-updater @@ -120,3 +120,7 @@ except SystemExit, e: sys.exit(e) except KeyboardInterrupt, e: sys.exit(1) +except config.IPAConfigError, e: + print "An IPA server to update cannot be found. Has one been configured yet?" + print "The error was: %s" % e + sys.exit(1) |