prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: I0d25f27a5e449578967915d9f570cc29246927d7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/examples/fru/Board_General.json b/libpldmresponder/examples/fru/Board_General.json
index c9914b6..b8132e2 100644
--- a/libpldmresponder/examples/fru/Board_General.json
+++ b/libpldmresponder/examples/fru/Board_General.json
@@ -1,37 +1,33 @@
// This JSON has the information needed to create General FRU record for FRU of
// type Board. The FRU fields are based on the PLDM specification DSP0257.
{
- "record_details":
- {
+ "record_details": {
// FRU Record Type - General FRU Record
- "fru_record_type" : 1,
+ "fru_record_type": 1,
// Encoding Type for FRU fields - ASCII
"fru_encoding_type": 1,
"dbus_interface_name": "xyz.openbmc_project.Inventory.Item.Board"
- },
- "fru_fields":[
- {
- // FRU Field Type 3 - Part Number
- "fru_field_type" : 3,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset",
- "property_name" : "PartNumber",
- "property_type" : "string"
+ },
+ "fru_fields": [
+ {
+ // FRU Field Type 3 - Part Number
+ "fru_field_type": 3,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "xyz.openbmc_project.Inventory.Decorator.Asset",
+ "property_name": "PartNumber",
+ "property_type": "string"
}
- },
- {
- // FRU Field Type 4 - Serial Number
- "fru_field_type" : 4,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset",
- "property_name" : "SerialNumber",
- "property_type" : "string"
+ },
+ {
+ // FRU Field Type 4 - Serial Number
+ "fru_field_type": 4,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "xyz.openbmc_project.Inventory.Decorator.Asset",
+ "property_name": "SerialNumber",
+ "property_type": "string"
}
- }
+ }
]
}
-
diff --git a/libpldmresponder/examples/fru/Board_VINI.json b/libpldmresponder/examples/fru/Board_VINI.json
index fbb710a..45936d1 100644
--- a/libpldmresponder/examples/fru/Board_VINI.json
+++ b/libpldmresponder/examples/fru/Board_VINI.json
@@ -1,38 +1,33 @@
// This JSON has the information needed to create OEM FRU record VINI for FRU of
// type Board.
{
- "record_details":
- {
+ "record_details": {
// FRU Record Type - OEM FRU Record
- "fru_record_type" : 254,
+ "fru_record_type": 254,
// Encoding Type for FRU fields - ASCII
"fru_encoding_type": 1,
"dbus_interface_name": "xyz.openbmc_project.Inventory.Item.Board"
- },
- "fru_fields":[
- {
- // FRU Field Type 2 - Keyword RT
- "fru_field_type" : 2,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "com.ibm.ipzvpd.VINI",
- "property_name" : "RT",
- "property_type" : "string"
+ },
+ "fru_fields": [
+ {
+ // FRU Field Type 2 - Keyword RT
+ "fru_field_type": 2,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "com.ibm.ipzvpd.VINI",
+ "property_name": "RT",
+ "property_type": "string"
}
- },
- {
- // FRU Field Type 3 - Keyword B3
- "fru_field_type" : 3,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "com.ibm.ipzvpd.VINI",
- "property_name" : "B3",
- "property_type" : "bytearray"
+ },
+ {
+ // FRU Field Type 3 - Keyword B3
+ "fru_field_type": 3,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "com.ibm.ipzvpd.VINI",
+ "property_name": "B3",
+ "property_type": "bytearray"
}
- }
-
+ }
]
}
-
diff --git a/libpldmresponder/examples/fru/Cpu_General.json b/libpldmresponder/examples/fru/Cpu_General.json
index 3595d79..e0b02d9 100644
--- a/libpldmresponder/examples/fru/Cpu_General.json
+++ b/libpldmresponder/examples/fru/Cpu_General.json
@@ -1,36 +1,33 @@
// This JSON has the information needed to create General FRU record for FRU of
// type Cpu. The FRU fields are based on the PLDM specification DSP0257.
{
- "record_details":
- {
+ "record_details": {
// FRU Record Type - General FRU Record
- "fru_record_type" : 1,
+ "fru_record_type": 1,
// Encoding Type for FRU fields - ASCII
"fru_encoding_type": 1,
"dbus_interface_name": "xyz.openbmc_project.Inventory.Item.Cpu"
- },
- "fru_fields":[
- {
- // FRU Field Type 3 - Part Number
- "fru_field_type" : 3,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset",
- "property_name" : "PartNumber",
- "property_type" : "string"
+ },
+ "fru_fields": [
+ {
+ // FRU Field Type 3 - Part Number
+ "fru_field_type": 3,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "xyz.openbmc_project.Inventory.Decorator.Asset",
+ "property_name": "PartNumber",
+ "property_type": "string"
}
- },
- {
- // FRU Field Type 4 - Serial Number
- "fru_field_type" : 4,
- // D-Bus property to read and populate the FRU field
- "dbus":
- {
- "interface" : "xyz.openbmc_project.Inventory.Decorator.Asset",
- "property_name" : "SerialNumber",
- "property_type" : "string"
+ },
+ {
+ // FRU Field Type 4 - Serial Number
+ "fru_field_type": 4,
+ // D-Bus property to read and populate the FRU field
+ "dbus": {
+ "interface": "xyz.openbmc_project.Inventory.Decorator.Asset",
+ "property_name": "SerialNumber",
+ "property_type": "string"
}
- }
+ }
]
}
diff --git a/libpldmresponder/examples/fru/FRU_Master.json b/libpldmresponder/examples/fru/FRU_Master.json
index 710c5e1..54aa619 100644
--- a/libpldmresponder/examples/fru/FRU_Master.json
+++ b/libpldmresponder/examples/fru/FRU_Master.json
@@ -12,16 +12,16 @@
// the OEM record (VINI is a record in IBM IPZ VPD format) for FRU of type Board.
// For all instances of the same FRU, the same config JSON will apply.
{
- "service":"xyz.openbmc_project.Inventory.Manager",
- "root_path":"/xyz/openbmc_project/inventory",
- "entities":[
+ "service": "xyz.openbmc_project.Inventory.Manager",
+ "root_path": "/xyz/openbmc_project/inventory",
+ "entities": [
{
- "interface" : "xyz.openbmc_project.Inventory.Item.Board",
- "entity_type" : 64
+ "interface": "xyz.openbmc_project.Inventory.Item.Board",
+ "entity_type": 64
},
{
- "interface" : "xyz.openbmc_project.Inventory.Item.Cpu",
- "entity_type" : 135
+ "interface": "xyz.openbmc_project.Inventory.Item.Cpu",
+ "entity_type": 135
}
]
}
diff --git a/libpldmresponder/examples/fru/host_frus.json b/libpldmresponder/examples/fru/host_frus.json
index d0348c1..ad8b62b 100644
--- a/libpldmresponder/examples/fru/host_frus.json
+++ b/libpldmresponder/examples/fru/host_frus.json
@@ -1,22 +1,20 @@
{
- "entities":[
- {
- // Entity Type 64 from the host has ...
- "entity_type" : 64,
- "parent":
- {
- // ... entity type 100 and instance 1 on the BMC as parent
- "entity_type" : 100,
- "entity_instance" : 1
- }
- },
- {
- "entity_type" : 65,
- "parent":
- {
- "entity_type" : 100,
- "entity_instance" : 1
- }
+ "entities": [
+ {
+ // Entity Type 64 from the host has ...
+ "entity_type": 64,
+ "parent": {
+ // ... entity type 100 and instance 1 on the BMC as parent
+ "entity_type": 100,
+ "entity_instance": 1
}
- ]
+ },
+ {
+ "entity_type": 65,
+ "parent": {
+ "entity_type": 100,
+ "entity_instance": 1
+ }
+ }
+ ]
}