Skip to content

Commit c3bd6b4

Browse files
committed
Revert "fixes spelling error in inventory chassis attrbute #167"
This reverts commit 972edf9.
1 parent 972edf9 commit c3bd6b4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

cr_module/classes/inventory.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
# inventory definition
20-
inventory_layout_version_string = "1.12.0"
20+
inventory_layout_version_string = "1.10.0"
2121

2222

2323
# noinspection PyBroadException
@@ -474,7 +474,7 @@ class Manager(InventoryItem):
474474

475475

476476
class Chassi(InventoryItem):
477-
inventory_item_name = "chassis"
477+
inventory_item_name = "chassi"
478478
valid_attributes = {
479479
"health_status": str,
480480
"id": str,
@@ -614,9 +614,6 @@ 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-
620617
output = {"inventory": inventory_content, "meta": meta_data}
621618

622619
return json.dumps(output, default=lambda o: o.__dict__,

0 commit comments

Comments
 (0)