mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-04 06:16:23 -06:00
Fixes #21115: Include attribute_data in ModuleType YAML export
- Added airflow and attribute_data fields to ModuleType.to_yaml() method - Ensures custom JSON properties from module type profiles are properly exported - Maintains consistency with import functionality in ModuleTypeImportForm
This commit is contained in:
@@ -155,6 +155,8 @@ class ModuleType(ImageAttachmentsMixin, PrimaryModel, WeightMixin):
|
|||||||
'description': self.description,
|
'description': self.description,
|
||||||
'weight': float(self.weight) if self.weight is not None else None,
|
'weight': float(self.weight) if self.weight is not None else None,
|
||||||
'weight_unit': self.weight_unit,
|
'weight_unit': self.weight_unit,
|
||||||
|
'airflow': self.airflow,
|
||||||
|
'attribute_data': self.attribute_data,
|
||||||
'comments': self.comments,
|
'comments': self.comments,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user