In the origin glance::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 glance::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
glance::db::mysql::host_access
Reviewed: https:/ /review. openstack. org/39263 github. com/stackforge/ puppet- glance/ commit/ aee08d0cbbf3f8c 13040dbf6abc652 f678b88f37
Committed: http://
Submitter: Jenkins
Branch: master
commit aee08d0cbbf3f8c 13040dbf6abc652 f678b88f37
Author: Xingchao Yu <email address hidden>
Date: Tue Jul 30 19:04:34 2013 +0800
Update allowed_hosts conditional statement
In the origin glance::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 glance::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
glance:
Fix bug 1206444
Change-Id: Ic70aaaec493195 c7277782abb8746 9f9809e5baa