You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def manage_object(self, object, attr, init, callback=None):
"""
This is a quick-fix copy of Opinel's manage_dictionary in order to support the new ScoutSuite object which isn't
a dict
"""
if type(object) == dict:
if not str(attr) in object:
object[str(attr)] = init
self.manage_object(object, attr, init)
else:
if not hasattr(object, attr):
setattr(object, attr, init)
self.manage_object(object, attr, init)
if callback:
callback(getattr(object, attr))
return object
The text was updated successfully, but these errors were encountered:
- Remove unnecessary recursive calls in manage_object function
- Add proper callback handling for both dict and object cases
- Add comprehensive test suite to verify functionality
- Improve documentation and type hints
dbsectrainer
added a commit
to dbsectrainer/ScoutSuite
that referenced
this issue
Feb 3, 2025
- Remove unnecessary recursive calls in manage_object function
- Add proper callback handling for both dict and object cases
- Add comprehensive test suite to verify functionality
- Improve documentation and type hints
Code at here:
ScoutSuite/ScoutSuite/providers/base/provider.py
Line 193 in 7909f2f
The text was updated successfully, but these errors were encountered: