]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
misc.py: saner write_file() and sudo_write_file()
authorNathan Cutler <ncutler@suse.com>
Fri, 2 Mar 2018 13:55:37 +0000 (14:55 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 26 Apr 2019 07:06:21 +0000 (09:06 +0200)
commitbfa8732062f824ca700890c293cdda45ea060232
tree92806d236d2badeae757a7edd824ea31d5da2dd7
parent2c5162ce13941fb060ddf3c134bd83fc24d63de6
misc.py: saner write_file() and sudo_write_file()

Using python to do this might have made sense in 2011, but it doesn't now.

Our hand is forced here, because systems are no longer guaranteed to
have an executable called "python".

For background details on why this is happening, see
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3#.2Fusr.2Fbin.2Fpython

Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/misc.py