Correct provider default inheritance
We were inheriting the base section of a provider twice, which is noticeable in the case of lists since they are appended. This change corrects that by starting with an empty dictionary. Change-Id: Iedd54ee817c6bcd6dd32cdf34eb9ba73519eeb57
This commit is contained in:
@@ -2029,8 +2029,7 @@ class ProviderConfig(ConfigObject):
|
||||
previous_section = parent_section
|
||||
inheritance_path.reverse()
|
||||
|
||||
root = inheritance_path[0]
|
||||
config = copy.deepcopy(root.config)
|
||||
config = {}
|
||||
connection = connections.get(connection_name)
|
||||
if connection is None:
|
||||
raise UnknownConnection(connection_name)
|
||||
|
||||
Reference in New Issue
Block a user