In the origin nova::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in nova::db::mysql.
There are two cases to pass $allowed_hosts to $real_allowed_hosts:
- If $allowed_hosts is array,then remove $host from $allowed_hosts;
- elsif $allowed_hosts is string and not equivalent to $host;
At last, if $real_allowed_hosts is not undef, then run
nova::db::mysql::host_access
Reviewed: https:/ /review. openstack. org/39260 github. com/stackforge/ puppet- nova/commit/ e8cebd12f385cda 9dfedf97b0c6b0e 25e5bf7198
Committed: http://
Submitter: Jenkins
Branch: master
commit e8cebd12f385cda 9dfedf97b0c6b0e 25e5bf7198
Author: Xingchao Yu <email address hidden>
Date: Tue Jul 30 18:40:19 2013 +0800
Update allowed_hosts conditional statement
In the origin nova::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in nova::db::mysql.
There are two cases to pass $allowed_hosts to $real_allowed_ hosts:
- If $allowed_hosts is array,then remove $host from $allowed_hosts;
- elsif $allowed_hosts is string and not equivalent to $host;
At last, if $real_allowed_hosts is not undef, then run :db::mysql: :host_access
nova:
Fix bug 1206444 1196e0c2e6b623b 30acb535020
Change-Id: If018321095e62e