Salvatore Orlando 32ab429bf6 Ensures policy file is reloaded only if updated.
Fixes bug 1023649

The fix is 'inspired' (ie: copied) from nova. It is cached in memory unless a
change in policy file is detected. In that case, a reload is triggered.

This patch also adds a set of unit tests for quantum/policy.py, which was
previously not covered.

Change-Id: I337042ae418b518268acd30c26ef02559887a8be
2012-07-18 17:59:42 -07:00
..
2011-11-28 10:33:52 -08:00