We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d7500 commit 4fe344dCopy full SHA for 4fe344d
tests/plugins/callback/idempotence.py
@@ -16,6 +16,10 @@ def playbook_on_stats(self, stats):
16
17
if (u'%s' % VAR_IDEMPOTENCE) in self.playbook.extra_vars.keys() and self.playbook.extra_vars[VAR_IDEMPOTENCE]:
18
19
+ if len(stats.unreachable) > 0:
20
+ print ('idempotence test failed! unreachable=%s > 0') % stats.unreachable
21
+ sys.exit(os.EX_SOFTWARE)
22
+
23
if len(stats.changed) > 0:
24
print ('idempotence test failed! changed=%s > 0') % stats.changed
25
sys.exit(os.EX_SOFTWARE)
0 commit comments