mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
yum: fix 'package == version' syntax (#47744)
This commit is contained in:
@@ -97,7 +97,7 @@ class YumDnf(with_metaclass(ABCMeta, object)):
|
||||
|
||||
# Fail if someone passed a space separated string
|
||||
# https://github.com/ansible/ansible/issues/46301
|
||||
if any((' ' in name and '@' not in name for name in self.names)):
|
||||
if any((' ' in name and '@' not in name and '==' not in name for name in self.names)):
|
||||
module.fail_json(
|
||||
msg='It appears that a space separated string of packages was passed in '
|
||||
'as an argument. To operate on several packages, pass a comma separated '
|
||||
|
||||
Reference in New Issue
Block a user