Comment 6 for bug 1206444

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-cinder (master)

Reviewed: https://review.openstack.org/39261
Committed: http://github.com/stackforge/puppet-cinder/commit/e7657de5ba6d7c2c122e1bc99598683f4a7021f3
Submitter: Jenkins
Branch: master

commit e7657de5ba6d7c2c122e1bc99598683f4a7021f3
Author: Xingchao Yu <email address hidden>
Date: Tue Jul 30 18:51:05 2013 +0800

    Update allowed_hosts conditional statement

    In the origin cinder::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 cinder::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
    cinder::db::mysql::host_access

    Fix bug 1206444
    Change-Id: I7eb9d883c1617d9913899f32ef47a892c1d9a1a2