summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Core.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-11 03:48:22 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-11 03:48:22 +0000
commit84dfc8ea1451e679f4cefccd990024a1a10fbf72 (patch)
treef49e4a8235645dcf57963981dfeeabbb1dd11e8a /src/lib/Server/Core.py
parenta683173f462f2571ed7a5bd3ba339d367bb87196 (diff)
downloadbcfg2-84dfc8ea1451e679f4cefccd990024a1a10fbf72.tar.gz
bcfg2-84dfc8ea1451e679f4cefccd990024a1a10fbf72.tar.bz2
bcfg2-84dfc8ea1451e679f4cefccd990024a1a10fbf72.zip
Fix failures for servers with no active structures (Resolves Ticket #324)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2580 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Core.py')
-rw-r--r--src/lib/Server/Core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 4c619b7a9..d6d17a708 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -257,7 +257,7 @@ class Core(object):
def GetStructures(self, metadata):
'''Get all structures for client specified by metadata'''
return reduce(lambda x, y:x+y,
- [struct.BuildStructures(metadata) for struct in self.structures])
+ [struct.BuildStructures(metadata) for struct in self.structures], [])
def BindStructure(self, structure, metadata):
'''Bind a complete structure'''