diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-02-06 14:29:25 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-02-06 14:29:25 -0500 |
commit | 4b8bdacc8f00d13e1ee4746ea54de2c8d35d10ae (patch) | |
tree | de386f46597bab93c820c15dce953327482663b4 | |
parent | ef812184699ffaca1a01d6b2ae96288357bf5daa (diff) | |
download | bcfg2-4b8bdacc8f00d13e1ee4746ea54de2c8d35d10ae.tar.gz bcfg2-4b8bdacc8f00d13e1ee4746ea54de2c8d35d10ae.tar.bz2 bcfg2-4b8bdacc8f00d13e1ee4746ea54de2c8d35d10ae.zip |
made PackagesConfig object more resilient on initial plugin loading
-rw-r--r-- | src/lib/Server/Plugins/Packages/PackagesConfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages/PackagesConfig.py b/src/lib/Server/Plugins/Packages/PackagesConfig.py index 75ff7a3b7..7950f15e6 100644 --- a/src/lib/Server/Plugins/Packages/PackagesConfig.py +++ b/src/lib/Server/Plugins/Packages/PackagesConfig.py @@ -7,7 +7,7 @@ class PackagesConfig(Bcfg2.Server.Plugin.SimpleConfig): """ Build local data structures """ Bcfg2.Server.Plugin.SimpleConfig.Index(self) - if self.plugin.sources.loaded: + if hasattr(self.plugin, "sources") and self.plugin.sources.loaded: # only reload Packages plugin if sources have been loaded. # otherwise, this is getting called on server startup, and # we have to wait until all sources have been indexed |