From: Alfredo Deza Date: Thu, 9 Oct 2014 14:04:17 +0000 (-0400) Subject: create a utility to read and return file contents X-Git-Tag: v1.5.18~4^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=af446bb086864211168b6fd454a4e7e5725e57ed;p=ceph-deploy.git create a utility to read and return file contents Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/util/files.py b/ceph_deploy/util/files.py new file mode 100644 index 0000000..6770596 --- /dev/null +++ b/ceph_deploy/util/files.py @@ -0,0 +1,5 @@ + + +def read_file(path): + with open(path, 'rb') as f: + return f.read()