]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add proper support for deprecation messages
authorThierry Carrez <thierry@openstack.org>
Wed, 8 Aug 2012 15:49:44 +0000 (17:49 +0200)
committerThierry Carrez <thierry@openstack.org>
Wed, 15 Aug 2012 19:41:52 +0000 (21:41 +0200)
commit0b221c998338e33627822d9837441c8f24124f90
tree191afae9812c0491fa81c409545abc959087583f
parent12aae1a0728629f9e4e4cc2542756653aab2657b
Add proper support for deprecation messages

Add support for warning once about deprecated options. Use that in
the rootwrap options deprecation message, and move it to run_as_root
so that the deprecated message is emitted once and only if used.

Change-Id: I29e39c662b4456256f4c9397f305bfa857972c46
cinder/common/deprecated.py [new file with mode: 0644]
cinder/exception.py
cinder/tests/test_deprecated.py [new file with mode: 0644]
cinder/utils.py