Skip to content

Commit

Permalink
validating Adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed May 22, 2024
1 parent 97d20fa commit e7a5f79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions classes/isight.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ def build_api_args(kwargs_keys, kwargs):
elif re.search('expand.+Units', api_args) and kwargs.results.Count > 30: rcount = 1001
elif re.search('expand.+Adapters', api_args) and kwargs.results.Count > 500: rcount = 1001
else: rcount = kwargs.results.Count
rcount = kwargs.results.Count
print(kwargs.results.Count)
#rcount = kwargs.results.Count
if rcount <= 100:
kwargs.api_args = api_args
kwargs = api_calls(kwargs)
Expand All @@ -590,7 +591,9 @@ def build_api_args(kwargs_keys, kwargs):
if re.search('expand.+PhysicalDisks', api_args): get_count = kwargs.results.Count; top_count = kwargs.results.Count // 24
elif re.search('expand.+Processors', api_args): get_count = kwargs.results.Count; top_count = kwargs.results.Count // 4
elif re.search('expand.+Units', api_args): get_count = kwargs.results.Count; top_count = kwargs.results.Count // 32
elif re.search('expand.+Adapters', api_args): get_count = kwargs.results.Count; top_count = kwargs.results.Count // 3
elif re.search('expand.+Adapters', api_args):
print('matching Adapters')
get_count = kwargs.results.Count; top_count = kwargs.results.Count // 4
else: get_count = rcount; top_count = 1000
moid_dict = {}
offset_count = 0
Expand Down

0 comments on commit e7a5f79

Please sign in to comment.