Skip to content
New issue

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

update add_resource_defaults in preparation for hardware tracking #362

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,22 @@ def handle(self, *args, **options):
AttributeType.objects.get_or_create(name=attribute_type)

for resource_attribute_type, attribute_type in (
#FASRC
('capacity_tb', 'Float'),
('free_tb', 'Float'),
('used_tb', 'Float'),
('file_count', 'Int'),
('allocated_tb', 'Float'),
('ChangeableAllocations', 'Yes/No'),
# ('Core Count', 'Int'),
('CPU Count', 'Int'),
('GPU Count', 'Int'),
('Features', 'Text'),
# UBCCR
('Core Count', 'Int'),
# ('expiry_time', 'Int'),
# ('fee_applies', 'Yes/No'),
('Node Count', 'Int'),
# ('Owner', 'Text'),
('Owner', 'Text'),
('quantity_default_value', 'Int'),
('quantity_label', 'Text'),
('xdmod_resource', 'Text'),
Expand Down Expand Up @@ -62,13 +67,14 @@ def handle(self, *args, **options):
('Cloud', 'Cloud Computing'),
('Cluster', 'Cluster servers'),
('Cluster Partition', 'Cluster Partition'),
# ('Compute Node', 'Compute Node'),
('Compute Node', 'Compute Node'),
# ('Server', 'Extra servers providing various services'),
# ('Software License', 'Software license purchased by users'),
# ('Storage', 'NAS storage'),
):
ResourceType.objects.get_or_create(
name=resource_type, description=description
name=resource_type,
defaults={'description': description},
)


Expand Down