Skip to content

Commit

Permalink
throw exception if socket not found
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi2 committed Apr 10, 2014
1 parent 5e59dac commit 3b14513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/IscsiClientLib.rb
Expand Up @@ -999,7 +999,8 @@ def getServiceStatus
startIScsid
else
# find socket (only in installed system)
@iscsid_socket = SystemdSocket.find("iscsid")
# throw exception if socket not found
@iscsid_socket = SystemdSocket.find!("iscsid")

@serviceStatus = true if Service.Status("iscsi") == 0
@socketStatus = true if iscsidSocketActive?
Expand Down

0 comments on commit 3b14513

Please sign in to comment.