From 879fe93604f8ff1e46f6aba30288a1edadce9fa1 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Fri, 7 Dec 2012 08:06:37 -0500 Subject: [PATCH] Clear the contents of the extra nova config options in __init__ previous options were hanging around, causing problems when there was multiple nova-compute nodes and one of them was the same as the nova-network node --- packstack/modules/ospluginutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packstack/modules/ospluginutils.py b/packstack/modules/ospluginutils.py index ee584f594..d8ddbae93 100644 --- a/packstack/modules/ospluginutils.py +++ b/packstack/modules/ospluginutils.py @@ -13,7 +13,9 @@ class NovaConfig(object): """ Helper class to create puppet manifest entries for nova_config """ - options = {} + def __init__(self): + self.options = {} + def addOption(self, n, v): self.options[n] = v