diff --git a/coldfront/core/resource/management/commands/add_resource_defaults.py b/coldfront/core/resource/management/commands/add_resource_defaults.py index 635e1ab62..473dd3b6b 100644 --- a/coldfront/core/resource/management/commands/add_resource_defaults.py +++ b/coldfront/core/resource/management/commands/add_resource_defaults.py @@ -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'), @@ -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}, )