diff options
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r-- | lib/bb/tinfoil.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py index 4fbad0774..1164ee601 100644 --- a/lib/bb/tinfoil.py +++ b/lib/bb/tinfoil.py @@ -104,6 +104,11 @@ class TinfoilDataStoreConnector: setattr(self, name, newfunc) return newfunc + def __iter__(self): + keys = self.tinfoil.run_command('dataStoreConnectorCmd', self.dsindex, "keys", [], {}) + for k in keys: + yield k + class TinfoilCookerAdapter: """ Provide an adapter for existing code that expects to access a cooker object via Tinfoil, |