~heut2008/charms/trusty/keystone/ldap-support

« back to all changes in this revision

Viewing changes to hooks/keystone_hooks.py

  • Committer: James Page
  • Date: 2014-03-10 16:04:03 UTC
  • mfrom: (58.1.1 keystone)
  • Revision ID: james.page@canonical.com-20140310160403-bhix7apg2n4pu9w0
[coreycb,r=james-page] Add sleep to workaround restart race

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
    if config_dirty():
434
434
        utils.restart('keystone')
435
435
 
 
436
    time.sleep(5);
 
437
 
436
438
    if cluster.eligible_leader(CLUSTER_RES):
437
439
        utils.juju_log('INFO',
438
440
                       'Firing identity_changed hook'