Commit bcdf16d7 authored by Guido Trotter's avatar Guido Trotter
Browse files

Match instance and node names case insensitively



Since DNS cannot contain two names with different cases anyway, this
should be ok.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 256eb94b
......@@ -854,7 +854,8 @@ class ConfigWriter:
"""
return utils.MatchNameComponent(short_name,
self._config_data.instances.keys())
self._config_data.instances.keys(),
case_sensitive=False)
def _UnlockedGetInstanceInfo(self, instance_name):
"""Returns information about an instance.
......@@ -934,7 +935,8 @@ class ConfigWriter:
"""
return utils.MatchNameComponent(short_name,
self._config_data.nodes.keys())
self._config_data.nodes.keys(),
case_sensitive=False)
def _UnlockedGetNodeInfo(self, node_name):
"""Get the configuration of a node, as stored in the config.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment