]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
[RM-12553] remote write_file - remove file first if it exists 335/head
authorTravis Rhoden <trhoden@redhat.com>
Tue, 4 Aug 2015 20:07:47 +0000 (13:07 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 4 Aug 2015 20:07:47 +0000 (13:07 -0700)
commit56880827e096232a574a34343f1eec1086658aed
tree3b5813619ff777955f2a5e4e8479f829ac5aa4d3
parenta14c5dd3bdfd48746b63a44ad3f7f33d4b3bfe7e
[RM-12553] remote write_file - remove file first if it exists

This way a new file mode can be applied if it has changed.

Since we are always writing the whole file (mode 'w') rather than
appending, we aren't losing anything by doing this.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/hosts/remotes.py