summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-14 11:42:51 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-15 09:44:01 -0400
commit5a4a6fc2a913d5609d3e69ae04fee55fa1c521e1 (patch)
treee7382d6901277567f3f9ca26aa4c49fd2a825f66
parentc685761bdcea79f5e8b115f2ba48935176518925 (diff)
downloadbcfg2-5a4a6fc2a913d5609d3e69ae04fee55fa1c521e1.tar.gz
bcfg2-5a4a6fc2a913d5609d3e69ae04fee55fa1c521e1.tar.bz2
bcfg2-5a4a6fc2a913d5609d3e69ae04fee55fa1c521e1.zip
fixed event handling for bcfg2.conf
-rw-r--r--src/lib/Bcfg2/Options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Options.py b/src/lib/Bcfg2/Options.py
index f77dcff85..2038af3bb 100644
--- a/src/lib/Bcfg2/Options.py
+++ b/src/lib/Bcfg2/Options.py
@@ -432,7 +432,7 @@ class OptionParser(OptionSet):
# we haven't parsed options yet, or CFILE wasn't included
# in the options
return
- if os.path.basename(self['configfile']) != event.filename:
+ if event.filename != self['configfile']:
print("Got event for unknown file: %s" % event.filename)
return
if event.code2str() == 'deleted':