~charm-helpers/charm-helpers/devel

Viewing all changes in revision 328.

  • Committer: james.page at ubuntu
  • Date: 2015-03-02 12:01:39 UTC
  • mfrom: (327.1.1 fixup-shared-db)
  • Revision ID: james.page@ubuntu.com-20150302120139-s08aaykmdsvdehfj
[james-page,r=gnuoy] Fixup race condition for MySQL + access-network

The SharedDB context was incorrectly returning {} as the signal for
incomplete in the event that the shared-db relation had presented an
access_network key, and the local unit has a IP in the required range.

Returning None ensures that the context is registered as incomplete,
so that hooks can check and not do db migrations.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: