diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-10-31 10:02:18 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-10-31 10:02:18 -0400 |
commit | 3d3c4b8cbd7201e5edb8cb7b54eeba201208714f (patch) | |
tree | 49258d7eb33e54708e7550451a40df176a500f46 /src/lib/Client | |
parent | 7f52d0517cf2a0ca8815980addc75ec73ff820ce (diff) | |
download | bcfg2-3d3c4b8cbd7201e5edb8cb7b54eeba201208714f.tar.gz bcfg2-3d3c4b8cbd7201e5edb8cb7b54eeba201208714f.tar.bz2 bcfg2-3d3c4b8cbd7201e5edb8cb7b54eeba201208714f.zip |
properly initialize content so that non-existant files don't get read
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/POSIX.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index 6ee365d43..0faa0dcda 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -470,6 +470,7 @@ class POSIX(Bcfg2.Client.Tools.Tool): # first, see if the target file exists at all; if not, # they're clearly different different = True + content = "" else: # next, see if the size of the target file is different # from the size of the desired content |