Skip to content

Commit

Permalink
Revert "Some syntax fixes"
Browse files Browse the repository at this point in the history
This reverts commit ce33bc5.
  • Loading branch information
teclator committed Feb 26, 2019
1 parent ce33bc5 commit 3d1e5de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/include/iscsi-lio-server/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ def AddDialog
VStretch()
)

help = CWM.MergeHelps(w)
contents = CWM.PrepareDialog(contents, w)
Wizard.SetContentsButtons(
caption,
Expand Down Expand Up @@ -553,6 +554,7 @@ def EditDialog
VStretch()
)

help = CWM.MergeHelps(w)
contents = CWM.PrepareDialog(contents, w)
Wizard.SetContentsButtons(
caption,
Expand Down Expand Up @@ -585,6 +587,7 @@ def ExpertDialog
VStretch()
)

help = CWM.MergeHelps(w)
contents = CWM.PrepareDialog(contents, w)
Wizard.SetContentsButtons(
caption,
Expand Down
2 changes: 1 addition & 1 deletion src/include/iscsi-lio-server/helps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def initialize_iscsi_lio_server_helps(include_target)
"<p>Under <b>Ip Address</b> and <b>Port Number</b> you specify under which address\n" +
"and port the service will be available. Default for port number is 3260.\n" +
"Only ip addresses assigned to one of the network cards are possible."
) + "</p>" + "<p>" + use_login_auth + "</p>",
) + "</p>" +"<p>" + use_login_auth + "</p>",
# add target
"target-add" => _(
"<h1>iSCSI Target IP/Port and LUN setup</h1>"
Expand Down
8 changes: 4 additions & 4 deletions src/modules/IscsiLioData.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ def SetTgt(data, tgt, tpg, m)
end

def EnableDiscoveryAuth()
cmd ="lio_node --setchapdiscenforce=1"
LogExecCmd("#{cmd}", do_log: true)
cmd ="lio_node --setchapdiscenforce=1"
ret = LogExecCmd("#{cmd}", do_log: true)
end

def DisableDiscoveryAuth()
cmd ="lio_node --setchapdiscenforce=0"
LogExecCmd("#{cmd}", do_log: true)
ret = LogExecCmd("#{cmd}", do_log: true)
end

def FindTcmKey(p)
Expand Down Expand Up @@ -401,7 +401,7 @@ def GetNetworkPortal(tgt, tpg)
) do |n|
ip = n["ip"] || ""
port = n["port"] || 3260
FormatIpPort(ip, port)
ipp = FormatIpPort(ip, port)
end
deep_copy(ret)
end
Expand Down

0 comments on commit 3d1e5de

Please sign in to comment.