diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-20 18:29:47 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-20 18:29:47 +0000 |
commit | 435d2709860bf7044be860354d7d31cf6d43af6c (patch) | |
tree | 110ed7f8488e0694b5c427925a27d2d30764afad /tools | |
parent | d5b0c38f0b9ed0e7ca2eb4e1e2f6aaa003268b33 (diff) | |
parent | 90431683b5927abb066d7964d513828b5488001c (diff) |
Merge "Make the DB URIs host-independent for all services"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/yaml-validate.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py index 0eacbc60..1d0dba02 100755 --- a/tools/yaml-validate.py +++ b/tools/yaml-validate.py @@ -62,14 +62,12 @@ def validate_mysql_connection(settings): return items == ['EndpointMap', 'MysqlInternal', 'protocol'] def client_bind_address(item): - return 'bind_address' in item + return 'read_default_file' in item and \ + 'read_default_group' in item def validate_mysql_uri(key, items): # Only consider a connection if it targets mysql - # TODO(owalsh): skip nova mysql uris,temporary workaround for - # tripleo/+bug/1662344 - if not key.startswith('nova') and \ - key.endswith('connection') and \ + if key.endswith('connection') and \ search(items, mysql_protocol, no_op): # Assume the "bind_address" option is one of # the token that made up the uri |