summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-connection2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index eed348f431..ced24ee47b 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -299,7 +299,7 @@ def main():
except Exception as exc:
# Only network_cli has update_play context, so missing this is
# not fatal e.g. netconf
- if isinstance(exc, ConnectionError) and getattr(exc, 'code') == -32601:
+ if isinstance(exc, ConnectionError) and getattr(exc, 'code', None) == -32601:
pass
else:
result.update({