You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently extlib::has_module($name) can be used to check if a module is present. It could benefit from an optional parameter to check for a specific version (range). This could allow easy soft dependency checks with version numbers:
if$git {
unless extlib::has_module('theforeman-git', '>= 5.0.0 < 8.0.0') {
fail('theforeman-git 5.x, 6.x or 7.x is needed for this functionality')
}
}
If the parameter is not specified, it should use the current behavior. It would be equivalent to having a default value of >= 0.
The text was updated successfully, but these errors were encountered:
Currently
extlib::has_module($name)
can be used to check if a module is present. It could benefit from an optional parameter to check for a specific version (range). This could allow easy soft dependency checks with version numbers:If the parameter is not specified, it should use the current behavior. It would be equivalent to having a default value of
>= 0
.The text was updated successfully, but these errors were encountered: