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.
pull/47003/merge
Ross Williams 6 years ago committed by Jordan Borean
parent f7ba63e047
commit 300db3af84

@ -163,7 +163,7 @@ def install_packages(module, packages, use_packages):
module.run_command("pkg install -y portupgrade") module.run_command("pkg install -y portupgrade")
portinstall_path = module.get_bin_path('portinstall', True) portinstall_path = module.get_bin_path('portinstall', True)
if use_packages == "yes": if use_packages:
portinstall_params = "--use-packages" portinstall_params = "--use-packages"
else: else:
portinstall_params = "" portinstall_params = ""

Loading…
Cancel
Save