diff options
author | James Laska <jlaska@redhat.com> | 2008-12-15 10:31:08 -0500 |
---|---|---|
committer | James Laska <jlaska@redhat.com> | 2008-12-15 10:31:08 -0500 |
commit | 42b3d812268d8920b6e0f76cdc5c39df78c4dc80 (patch) | |
tree | 9371e5339303cbc07b7e1c447d5defb5beeb8ee1 /cobbler/remote.py | |
parent | bf47c6881af148d0136fb0147a2c2a35201de234 (diff) | |
download | cobbler-42b3d812268d8920b6e0f76cdc5c39df78c4dc80.tar.gz cobbler-42b3d812268d8920b6e0f76cdc5c39df78c4dc80.tar.xz cobbler-42b3d812268d8920b6e0f76cdc5c39df78c4dc80.zip |
Allow offset=0 uploads for all files
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r-- | cobbler/remote.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py index 65f9d6f9..bf87a444 100644 --- a/cobbler/remote.py +++ b/cobbler/remote.py @@ -391,12 +391,6 @@ class CobblerXMLRPCInterface: else: if not stat.S_ISREG(st.st_mode): raise CX(_("destination not a file: %s") % fn) - elif offset == 0: - #first chunk, so file should not exist yet - if not fn.endswith('.log'): - # but we allow .log files to be uploaded multiple times to support - # realtime log-file viewing - raise CX(_("file already exists: %s") % fn) fd = os.open(fn, os.O_RDWR | os.O_CREAT, 0644) # log_error("fd=%r" %fd) |