Added work around for Ubuntu Xenial calling php7_module php7.0
This commit is contained in:
parent
2bbbf58156
commit
914e205eb3
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ def _module_is_enabled(module):
|
|||
|
||||
result, stdout, stderr = module.run_command("%s -M" % control_binary)
|
||||
|
||||
"""
|
||||
Work around for Ubuntu Xenial listing php7_module as php7.0
|
||||
"""
|
||||
if name == "php7.0":
|
||||
name = "php7"
|
||||
|
||||
if result != 0:
|
||||
module.fail_json(msg="Error executing %s: %s" % (control_binary, stderr))
|
||||
|
||||
|
|
Loading…
Reference in a new issue