open_iscsi module: support RC 21 when listing logged-in target

reviewable/pr18780/r1
Nicolas Brisac 11 years ago
parent da7835da1d
commit ecda1455bf

@ -162,6 +162,8 @@ def target_loggedon(module, target):
if rc == 0:
return target in out
elif rc == 21:
return False
else:
module.fail_json(cmd=cmd, rc=rc, msg=err)

Loading…
Cancel
Save