yum: fix 'package == version' syntax (#47744)

This commit is contained in:
Martin Krizek 2018-10-30 16:28:22 +01:00 committed by GitHub
commit 4b8f2c99d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 1 deletions

View file

@ -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 '