1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Nicolas Brisac 2014-05-24 18:14:28 +02:00
parent c469523db5
commit 592a5b6fb1

View file

@ -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)