We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When an empty configuration server is given default case is not set
POST /v1/server/
{}
**No CASE component in verbose object **
"verbose": { "CPU-1": { "unit": 2, "core_units": 24, "die_size_per_core": 0.245, "impacts": { "gwp": 44, "pe": 650, "adp": 0.04 } }, "SSD-1": { "unit": 1, "capacity": 1000, "density": 48.5, "impacts": { "gwp": 52, "pe": 640, "adp": 0.002 } }, "RAM-1": { "unit": 24, "capacity": 32, "density": 0.625, "impacts": { "gwp": 2832, "pe": 35328, "adp": 0.12 } }, "POWER_SUPPLY-1": { "unit": 2, "unit_weight": 2.99, "impacts": { "gwp": 146, "pe": 2104, "adp": 0.05 } }, "MOTHERBOARD-1": { "unit": 1, "impacts": { "gwp": 66, "pe": 836, "adp": 0.004 } }, "ASSEMBLY-1": { "unit": 1, "impacts": { "gwp": 7, "pe": 69, "adp": 0 } } }
If no configuration is given, a default CaseComponent should be added
"verbose": { "CPU-1": { "unit": 2, "core_units": 24, "die_size_per_core": 0.245, "impacts": { "gwp": 44, "pe": 650, "adp": 0.04 } }, "SSD-1": { "unit": 1, "capacity": 1000, "density": 48.5, "impacts": { "gwp": 52, "pe": 640, "adp": 0.002 } }, "RAM-1": { "unit": 24, "capacity": 32, "density": 0.625, "impacts": { "gwp": 2832, "pe": 35328, "adp": 0.12 } }, "POWER_SUPPLY-1": { "unit": 2, "unit_weight": 2.99, "impacts": { "gwp": 146, "pe": 2104, "adp": 0.05 } }, "MOTHERBOARD-1": { "unit": 1, "impacts": { "gwp": 66, "pe": 836, "adp": 0.004 } }, "ASSEMBLY-1": { "unit": 1, "impacts": { "gwp": 7, "pe": 69, "adp": 0 } }, "CASE-1": { "unit": 1, "case_type": "used_value": "rack", "impacts": { "gwp": 150, "pe": 2200, "adp": 0.02 } }
Add an empty ComponentCase into the default server configuration in model/devices.py line 142 get_default_configuration_component_list
get_default_configuration_component_list
The text was updated successfully, but these errors were encountered:
fixing #57
0fd0466
da-ekchajzer
No branches or pull requests
Bug description
When an empty configuration server is given default case is not set
To Reproduce
POST /v1/server/
**No CASE component in verbose object **
Expected behavior
If no configuration is given, a default CaseComponent should be added
JSON OUTPUT
Additional context
Add an empty ComponentCase into the default server configuration in model/devices.py line 142
get_default_configuration_component_list
The text was updated successfully, but these errors were encountered: