From e1750e2a18ed0e537608cfdee7eed3ffa090d443 Mon Sep 17 00:00:00 2001 From: François Cami Date: Aug 07 2020 10:50:25 +0000 Subject: ipatests: tasks.py: fix ipa-epn invocation tasks.py::ipa_epn would previously fail to invoke ipa-epn with from_nbdays=0. Related: https://pagure.io/freeipa/issue/8449 Signed-off-by: François Cami Reviewed-By: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index a3f7cc8..c0a5927 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -1470,9 +1470,9 @@ def ipa_epn( cmd.append("--dry-run") if mailtest: cmd.append("--mail-test") - if from_nbdays: + if from_nbdays is not None: cmd.extend(("--from-nbdays", str(from_nbdays))) - if to_nbdays: + if to_nbdays is not None: cmd.extend(("--to-nbdays", str(to_nbdays))) return host.run_command(cmd, raiseonerr=raiseonerr)