From e1750e2a18ed0e537608cfdee7eed3ffa090d443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Tue, 4 Aug 2020 11:05:31 +0200 Subject: [PATCH] ipatests: tasks.py: fix ipa-epn invocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ipatests/pytest_ipa/integration/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index a3f7cc838..c0a592750 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)