diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/keystone-all | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/keystone-all b/bin/keystone-all index 8942ec47..558161c2 100755 --- a/bin/keystone-all +++ b/bin/keystone-all @@ -25,6 +25,7 @@ from paste import deploy from keystone import config from keystone.common import wsgi from keystone.common import utils +from keystone.openstack.common import importutils CONF = config.CONF @@ -57,9 +58,13 @@ def serve(*servers): # notify calling process we are ready to serve if CONF.onready: try: - utils.check_output(CONF.onready.split()) - except Exception: - logging.exception('Failed to execute onready command') + notifier = importutils.import_module(CONF.onready) + notifier.notify() + except ImportError: + try: + utils.check_output(CONF.onready.split()) + except Exception: + logging.exception('Failed to execute onready command') for server in servers: try: |