Corrected default limits filter in nova API

The old syntax that used % symbols, caused some errors upon a restart
of the nova-api. Replacing the % and parentheses with the double quotes
allows the API to start without errors.

Change-Id: I96c00590390c6caf0a17a43e68ede111684b3110
Closes-Bug: #1683496
This commit is contained in:
Sergii Rizvan 2017-05-29 13:50:38 +03:00
parent 57bb7299b7
commit 442f6a0ed7
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ class openstack_tasks::openstack_controller::openstack_controller {
$delete_limit = $merged_limits['DELETE']
$post_servers_limit = $merged_limits['POST_SERVERS']
$nova_rate_limits_string = inline_template('<%="(POST, *, .*, #{@post_limit} , MINUTE);\
(POST, %(*/servers), ^/servers, #{@post_servers_limit} , DAY);(PUT, %(*) , .*, #{@put_limit}\
, MINUTE);(GET, %(*changes-since*), .*changes-since.*, #{@get_limit}, MINUTE);(DELETE, %(*),\
(POST, \"*/servers\", ^/servers, #{@post_servers_limit} , DAY);(PUT, \"*\" , .*, #{@put_limit}\
, MINUTE);(GET, \"*changes-since*\", .*changes-since.*, #{@get_limit}, MINUTE);(DELETE, \"*\",\
.*, #{@delete_limit} , MINUTE)" %>')
class { '::nova::keystone::authtoken':