File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818
1919# inventory definition
20- inventory_layout_version_string = "1.10 .0"
20+ inventory_layout_version_string = "1.12 .0"
2121
2222
2323# noinspection PyBroadException
@@ -474,7 +474,7 @@ class Manager(InventoryItem):
474474
475475
476476class Chassi (InventoryItem ):
477- inventory_item_name = "chassi "
477+ inventory_item_name = "chassis "
478478 valid_attributes = {
479479 "health_status" : str ,
480480 "id" : str ,
@@ -614,6 +614,9 @@ def to_json(self):
614614 "inventory_name" : self .inventory_name ,
615615 }
616616
617+ # add legacy compatibility layer to not break implementations
618+ inventory_content ["chassi" ] = inventory_content .get ("chassis" )
619+
617620 output = {"inventory" : inventory_content , "meta" : meta_data }
618621
619622 return json .dumps (output , default = lambda o : o .__dict__ ,
You can’t perform that action at this time.
0 commit comments