Filtering out default from returnin in getkeys
Default has to do with the internal architecture, it's never used in a real
chip (means cfg is not complete), so should not be returned
The correct way to check for illegal/incomplete cfg is through the check api
@@ -95,7 +95,12 @@ class Chip:
'''
self.logger.info('Retrieving config dictionary keys: %s', args)
- return list(self.search(self.cfg, *args, mode='getkeys'))
+ keys = list(self.search(self.cfg, *args, mode='getkeys'))
+
+ if 'default' in keys:
+ keys.remove('default')
+
+ return keys
####################################
def add(self, *args):
