« Previous | Next » 

Revision 71714516

ID71714516e720939d6bb6214fb82e7fb2b06a4333
Parent 67fe61c4
Child 78f3bd30

Added by Michael Hanselmann over 14 years ago

Add more parameters to utils.WriteFile

- Make closing file optional: Required by ganeti-watcher to keep
file open after writing it. Changes return value of utils.WriteFile
if "close" parameter evaluates to True.
- Pre- and post-write functions: Can be used to lock files. This
will be used by ganeti-watcher to lock the temporary file before
renaming.

Reviewed-by: iustinp

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences