summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-10-07 00:14:55 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-10-07 00:14:55 +0000
commit416a4889a9c97140027349bb7a722be228807515 (patch)
tree2ff00b3c4e0c67221f240c57d48e56de6140f18b /src/lib
parent5c0c97d2ee2eefd00004545751dc2cbd392cdea2 (diff)
downloadbcfg2-416a4889a9c97140027349bb7a722be228807515.tar.gz
bcfg2-416a4889a9c97140027349bb7a722be228807515.tar.bz2
bcfg2-416a4889a9c97140027349bb7a722be228807515.zip
Fix case where file is not bound.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2407 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/POSIX.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index c5d82a403..ce609848d 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -190,6 +190,9 @@ class POSIX(Bcfg2.Client.Tools.Tool):
def InstallConfigFile(self, entry):
'''Install ConfigFile Entry'''
+ if entry.text == None and entry.get('empty', 'false') != 'true':
+ self.logger.info("Incomplete information for ConfigFile %s" % entry.get('name'))
+ return False
self.logger.info("Installing ConfigFile %s" % (entry.get('name')))
parent = "/".join(entry.get('name').split('/')[:-1])