]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
create a utility to read and return file contents
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 9 Oct 2014 14:04:17 +0000 (10:04 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 9 Oct 2014 14:04:17 +0000 (10:04 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/util/files.py [new file with mode: 0644]

diff --git a/ceph_deploy/util/files.py b/ceph_deploy/util/files.py
new file mode 100644 (file)
index 0000000..6770596
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+def read_file(path):
+    with open(path, 'rb') as f:
+        return f.read()