From 300db3af848b1e5865496ced48a74b7736d68e23 Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Thu, 25 Oct 2018 20:49:31 -0400 Subject: [PATCH] Module portinstall: use_packages is a bool (#47370) The module has been checking if use_packages is a string equal to "yes", but AnsibleModule actually converts the use_packages argument to a bool. --- lib/ansible/modules/packaging/os/portinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/portinstall.py b/lib/ansible/modules/packaging/os/portinstall.py index 20114bcd0a..e9c818aac6 100644 --- a/lib/ansible/modules/packaging/os/portinstall.py +++ b/lib/ansible/modules/packaging/os/portinstall.py @@ -163,7 +163,7 @@ def install_packages(module, packages, use_packages): module.run_command("pkg install -y portupgrade") portinstall_path = module.get_bin_path('portinstall', True) - if use_packages == "yes": + if use_packages: portinstall_params = "--use-packages" else: portinstall_params = ""