Skip to content
Permalink
Browse files

evaluate device name (needed for format call)

  • Loading branch information...
schubi2 committed May 27, 2015
1 parent b926c22 commit 469d33cc4853ec7a165ce0c69ecdc405c3b33041
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/modules/DASDController.rb
@@ -148,7 +148,7 @@ def Write
to_reactivate << device
end
if format
dev_name = GetDeviceName(channel)
device["dev_name"] = GetDeviceName(channel) unless device["dev_name"]
to_format << device
# unformtted disk, manual (not AutoYaS)
elsif act_ret == 8
@@ -631,7 +631,7 @@ def FormatDisks(disks_list, par)
Builtins.foreach(disks_list) do |device|
index = Ops.add(index, 1)
Ops.set(disks, index, device)
disks_cmd = Builtins.add(disks_cmd, Builtins.sformat("-f '%1'", device))
disks_cmd = Builtins.add(disks_cmd, Builtins.sformat("-f '%1'", device["dev_name"]))
end
disks_param = Builtins.mergestring(disks_cmd, " ")
command = Builtins.sformat(

0 comments on commit 469d33c

Please sign in to comment.
You can’t perform that action at this time.