Skip to content
Snippets Groups Projects
Commit ee9516c8 authored by Guido Trotter's avatar Guido Trotter
Browse files

ConfigData: run UpgradeConfig on network objects


Although this does nothing for now, running it is safe, and consistent
with how other objects behave.

Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 5ba35653
No related branches found
No related tags found
No related merge requests found
...@@ -499,6 +499,8 @@ class ConfigData(ConfigObject): ...@@ -499,6 +499,8 @@ class ConfigData(ConfigObject):
self.cluster.drbd_usermode_helper = constants.DEFAULT_DRBD_HELPER self.cluster.drbd_usermode_helper = constants.DEFAULT_DRBD_HELPER
if self.networks is None: if self.networks is None:
self.networks = {} self.networks = {}
for network in self.networks.values():
network.UpgradeConfig()
class NIC(ConfigObject): class NIC(ConfigObject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment