No support for build=true with 'branch' syntax.
This commit is contained in:
parent
2d353dc98c
commit
dd14d14224
1 changed files with 5 additions and 0 deletions
|
@ -491,6 +491,11 @@ def main():
|
||||||
pkg_spec = {}
|
pkg_spec = {}
|
||||||
parse_package_name(name, pkg_spec, module)
|
parse_package_name(name, pkg_spec, module)
|
||||||
|
|
||||||
|
# Not sure how the branch syntax is supposed to play together
|
||||||
|
# with build mode. Disable it for now.
|
||||||
|
if pkg_spec['style'] == 'branch' and module.params['build'] is True:
|
||||||
|
module.fail_json(msg="the combination of 'branch' syntax and build=%s is not supported: %s" % (module.params['build'], name))
|
||||||
|
|
||||||
# Get package state.
|
# Get package state.
|
||||||
installed_state = get_package_state(name, pkg_spec, module)
|
installed_state = get_package_state(name, pkg_spec, module)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue