]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
create a fakes file
authorAlfredo Deza <alfredo@deza.pe>
Wed, 17 Jul 2013 19:48:10 +0000 (15:48 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 17 Jul 2013 19:48:10 +0000 (15:48 -0400)
ceph_deploy/test/fakes.py [new file with mode: 0644]

diff --git a/ceph_deploy/test/fakes.py b/ceph_deploy/test/fakes.py
new file mode 100644 (file)
index 0000000..a96bcf7
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+def fake_getaddrinfo(*a, **kw):
+    return_host = kw.get('return_host', 'host1')
+    return [[0,0,0,0, return_host]]