Skip to content

Commit

Permalink
Merge pull request #1396 from HuijingHei/dd_google_nvme_id
Browse files Browse the repository at this point in the history
OCPBUGS-18833: google_nvme_id: sync with latest upstream version
  • Loading branch information
openshift-merge-bot[bot] committed Nov 21, 2023
2 parents 5ce5ba1 + 4501150 commit 3edd5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function err() {
#######################################
function get_namespace_device_name() {
local nvme_json
nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | cut -b 384-)"
nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | dd bs=1 skip=384 2>/dev/null)"
if [[ $? -ne 0 ]]; then
return 1
fi
Expand Down

0 comments on commit 3edd5e5

Please sign in to comment.