~openstack-charmers-next/charms/precise/neutron-gateway/trunk

Viewing all changes in revision 187.

  • Committer: Alex Kavanagh
  • Date: 2016-06-16 10:55:57 UTC
  • Revision ID: alex@ajkavanagh.co.uk-20160616105557-q58h4zmnb2ftf908
Fix for multiple status-set - related to bug 1588462

This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function.  This cleans up the code so that only a
single status_set() is performed when calling assess_status().

Change-Id: I05e071d635819c516ab76684842a25a9c2f81d83
Related-Bug:#1588462

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: