Wrong version comparison in Get-MyDellBios.ps1

オープン 初心者向け
#332 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
powershell
領域
devops

調査の方向性

比較処理は Public/Functions/BIOS/Get-MyDellBios.ps1 にあり、Issue では -Force を指定しないと Update-MyDellBios が新しい BIOS を適用しないと報告されています。$GetMyDellBios.DellVersion と Get-MyBiosVersion を比較している if 条件から始め、どちらのオペランドが小さい方であるべきかを確認してください。カタログ上のバージョンが高い場合に -Force なしで BIOS が更新され、-Force の経路も引き続き動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug
The function "Update-MyDellBios" will never update an bios if "-Force" is not set.
The reason is a wrong version comparison where the Dell Catalog Version needs to be lower than the systems current bios version.
if (($GetMyDellBios.DellVersion -lt (Get-MyBiosVersion)) -or ($Force.IsPresent) ) { ... }

Affected Script:
Public/Functions/BIOS/Get-MyDellBios.ps1

To Reproduce
Add "Update-MyDellBios" as shutdown script without -force parameter.

Expected behavior
The bios will be updated from a lower to a higher version without the -force parameter

Recommended solution:
if ( ((Get-MyBiosVersion) -lt $GetMyDellBios.DellVersion) -or ($Force.IsPresent) ) { ... }

主要言語
PowerShell
スター
251
フォーク
102
平均マージ
2分
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OSDeploy/OSD のほかの issue

OSDeploy/OSD の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。