Changing default retry interval to 0.2 seconds
Resolves openbmc/openbmc#974.
Change-Id: I05e0ad31d98398a0375d4db620a388d4af1dec8a
Signed-off-by: Cory Klokman <cklokma@us.ibm.com>
diff --git a/obmc/mapper/bindings.py b/obmc/mapper/bindings.py
index 820efa7..14d9a7d 100644
--- a/obmc/mapper/bindings.py
+++ b/obmc/mapper/bindings.py
@@ -52,25 +52,25 @@
if e:
raise e
- def get_object(self, path, retries=5, interfaces=[], interval=0):
+ def get_object(self, path, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetObject(
path, interfaces, signature='sas'),
retries, interval)
- def get_subtree_paths(self, path='/', depth=0, retries=5, interfaces=[], interval=0):
+ def get_subtree_paths(self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetSubTreePaths(
path, depth, interfaces, signature='sias'),
retries, interval)
- def get_subtree(self, path='/', depth=0, retries=5, interfaces=[], interval=0):
+ def get_subtree(self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetSubTree(
path, depth, interfaces, signature='sias'),
retries, interval)
- def get_ancestors(self, path, retries=5, interfaces=[], interval=0):
+ def get_ancestors(self, path, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetAncestors(
path, interfaces, signature='sas'),