commit e9e261be3bbff99ae95786e9b2089712bfc03eb4
Author: Xingchao Yu <email address hidden>
Date: Sun Aug 4 17:57:42 2013 +0800
Update allowed_hosts conditional statement
In the origin heat::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 heat::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
heat::db::mysql::host_access
Reviewed: https:/ /review. openstack. org/40165 github. com/stackforge/ puppet- heat/commit/ e9e261be3bbff99 ae95786e9b20897 12bfc03eb4
Committed: http://
Submitter: Jenkins
Branch: master
commit e9e261be3bbff99 ae95786e9b20897 12bfc03eb4
Author: Xingchao Yu <email address hidden>
Date: Sun Aug 4 17:57:42 2013 +0800
Update allowed_hosts conditional statement
In the origin heat::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 heat::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
heat:
Add heat_db_mysql_spec for related test.
Fix bug 1206444
Change-Id: Iac6a32fb614c9a d19f9eaa3aaa883 cb3bf9aa2ef