From 1c8ed77bb8ad1a576f8211912f71602e52d08805 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Wed, 27 Sep 2023 07:25:38 +0200 Subject: [PATCH] condition/firmwareInstall: snake case JSON field names --- condition/firmware_install.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/condition/firmware_install.go b/condition/firmware_install.go index b22e704..ac5988d 100644 --- a/condition/firmware_install.go +++ b/condition/firmware_install.go @@ -11,13 +11,13 @@ const ( // nolint:govet // fieldalignment struct is easier to read in the current format type FirmwareInstallTaskParameters struct { // Inventory identifier for the asset to install firmware on. - AssetID uuid.UUID `json:"assetID"` + AssetID uuid.UUID `json:"asset_id"` // Reset device BMC before firmware install - ResetBMCBeforeInstall bool `json:"resetBMCBeforeInstall,omitempty"` + ResetBMCBeforeInstall bool `json:"reset_bmc_before_install,omitempty"` // Force install given firmware regardless of current firmware version. - ForceInstall bool `json:"forceInstall,omitempty"` + ForceInstall bool `json:"force_install,omitempty"` // Task priority is the task priority between 0 and 3 // where 0 is the default and 3 is the max. @@ -32,7 +32,7 @@ type FirmwareInstallTaskParameters struct { Firmwares []Firmware `json:"firmwares,omitempty"` // FirmwareSetID specifies the firmware set to be applied. - FirmwareSetID uuid.UUID `json:"firmwareSetID,omitempty"` + FirmwareSetID uuid.UUID `json:"firmware_set_id,omitempty"` } // Firmware holds attributes for a firmware object