7fcb683404f754fe88f1833365e617b75576773d
The custom exceptions were defining the message format string as the 'message' attribute, which was confusing as 'message' is also being used as an input argument to the class. This combined with the fact that the the 'message' attribute of Python's BaseException has been deprecated, msg_fmt replaces message to hold the message format of the exception. The root cause of the bug in question was caused by the __unicode__ method returning self.message, which did not have the kwargs substituted into the actual message format. The fix is to use self.args[0] instead, which will contain the message format with the kwargs substituted in since that is passed to the super's (Exception) __init__ method. See PEP 0352 for more information on how Exception and BaseException work. The _cleanse_dict method is also removed as it is not used anywhere. Change-Id: Ie8ac96afaecc732693a184d0e06e77c56ca8eeb9 Closes-Bug: #1535473
..
Except where otherwise noted, this document is licensed under Creative
Commons Attribution 3.0 License. You can view the license at:
https://creativecommons.org/licenses/by/3.0/
=======
Watcher
=======
OpenStack Watcher provides a flexible and scalable resource optimization
service for multi-tenant OpenStack-based clouds.
Watcher provides a complete optimization loop—including everything from a
metrics receiver, complex event processor and profiler, optimization processor
and an action plan applier. This provides a robust framework to realize a wide
range of cloud optimization goals, including the reduction of data center
operating costs, increased system performance via intelligent virtual machine
migration, increased energy efficiency—and more!
* Free software: Apache license
* Wiki: http://wiki.openstack.org/wiki/Watcher
* Source: https://github.com/openstack/watcher
* Bugs: http://bugs.launchpad.net/watcher
* Documentation: https://factory.b-com.com/www/watcher/doc/watcher/index.html
Description
Languages
Python
99.7%
Shell
0.3%