nova/nova/consoleauth
Christoph Manns e5884a8fd5 Fix stacktraces with redis caching backend
If you use redis as a caching backend and you delete a server with
no consoleauth tokens you'll get a stacktrace as an empty list is
passed down to the redis client and ultimately the redis server
which responds with an error, complaining about a wrong number
of arguments for the del command.
The code now checks if the list of tokens is empty and only calls
the caching backend if there are tokens available to delete.
This also may improve performance, as it no longer hands down an
empty list.

Closes-Bug: #1794812
Change-Id: Iffdd4e251bfa2bac1bfd49498e32b738843709de
2018-09-27 13:15:11 -04:00
..
__init__.py Config options: Centralize consoleauth options 2016-03-31 15:13:46 +00:00
manager.py Fix stacktraces with redis caching backend 2018-09-27 13:15:11 -04:00
rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00