Skip to content

ValueError: could not convert str to float: 'QUEUED' #70

Open
@farinaanthony96

Description

@farinaanthony96

When I try to retrieve a list of evaluations from my Dell Isilon after I began an evaluation, the code crashes with an error:

Exception has occurred: ValueError
could not convert string to float: 'QUEUED'
File "E:\Scripts\Report Refactoring\src\dell_isilon_report.py", line 76, in get_evaluation_results
all_healthchecks = ISILON_HEALTHCHECK_API_CLIENT.list_healthcheck_evaluations()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Scripts\Report Refactoring\src\dell_isilon_report.py", line 127, in get_alerts
eval_obj = get_evaluation_results(eval_id)
File "E:\Scripts\Report Refactoring\src\dell_isilon_report.py", line 135, in main
all_isilon_alerts = get_alerts()
File "E:\Scripts\Report Refactoring\src\dell_isilon_report.py", line 142, in
main()
ValueError: could not convert string to float: 'QUEUED'

This is my code:
ISILON_API_CLIENT = isilon_sdk.v9_4_0.ApiClient(ISILON_CONFIG)
ISILON_HEALTHCHECK_API_CLIENT = isilon_sdk.v9_4_0.HealthcheckApi(ISILON_API_CLIENT)

basic_healthcheck_evaluation_checklist = isilon_sdk.v9_4_0.HealthcheckEvaluationCreateParams(checklist_id="basic")
basic_healthcheck_evaluation_response = ISILON_HEALTHCHECK_API_CLIENT.create_healthcheck_evaluation(basic_healthcheck_evaluation_checklist)

ISILON_HEALTHCHECK_API_CLIENT.list_healthcheck_evaluations()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions