mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-09 12:10:31 -07:00
Convert package list to packages string
This commit is contained in:
parent
64b542d9ba
commit
f8eeda3776
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ class YumVersionLock:
|
|||
|
||||
def ensure_state(self, package, command):
|
||||
""" Ensure package state """
|
||||
rc, out, err = self.module.run_command([self.yum_bin, "-q", "versionlock", command, package])
|
||||
packages = " ".join(package)
|
||||
rc, out, err = self.module.run_command([self.yum_bin, "-q", "versionlock", command, packages])
|
||||
if rc == 0:
|
||||
return True
|
||||
self.module.fail_json(msg="Error: " + to_native(err) + to_native(out))
|
||||
|
|
Loading…
Add table
Reference in a new issue