Merge pull request #7532 from oasiswork/devel
open_iscsi module: support RC 21 when listing logged-in target
This commit is contained in:
commit
71e4d76da9
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,8 @@ def target_loggedon(module, target):
|
||||||
|
|
||||||
if rc == 0:
|
if rc == 0:
|
||||||
return target in out
|
return target in out
|
||||||
|
elif rc == 21:
|
||||||
|
return False
|
||||||
else:
|
else:
|
||||||
module.fail_json(cmd=cmd, rc=rc, msg=err)
|
module.fail_json(cmd=cmd, rc=rc, msg=err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue