mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 16:06:43 +00:00
remove check for version string
this check does not get used anywhere and is not needed as zypper/rpm can handle version information directly
This commit is contained in:
@@ -196,13 +196,6 @@ def main():
|
||||
result['name'] = name
|
||||
result['state'] = state
|
||||
|
||||
# Decide if the name contains a version number.
|
||||
match = re.search("-[0-9]", name)
|
||||
if match:
|
||||
specific_version = True
|
||||
else:
|
||||
specific_version = False
|
||||
|
||||
# Get package state
|
||||
installed_state = get_package_state(module, name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user