Taylor Peoples 7fcb683404 Replace message with msg_fmt for custom exceptions
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
2016-01-19 04:20:37 +01:00
2016-01-06 17:05:40 +01:00
2015-12-15 10:14:40 +01:00
2015-10-22 17:04:14 +02:00
2015-10-22 16:34:14 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2015-06-04 15:27:57 +02:00
2016-01-18 13:42:00 +00:00

..
      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
No description provided
Readme 32 MiB
Languages
Python 99.7%
Shell 0.3%