From ecda1455bf55eb417f73713b28fd0fca1692b285 Mon Sep 17 00:00:00 2001 From: Nicolas Brisac Date: Sat, 24 May 2014 18:14:28 +0200 Subject: [PATCH] open_iscsi module: support RC 21 when listing logged-in target --- system/open_iscsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/open_iscsi b/system/open_iscsi index 3fd2b1a5a21..c661a723d77 100644 --- a/system/open_iscsi +++ b/system/open_iscsi @@ -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)