1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

No support for build=true with 'branch' syntax.

This commit is contained in:
Patrik Lundin 2016-06-30 18:13:40 +02:00 committed by Matt Clay
parent 04409cc214
commit 89c5cddda1

View file

@ -491,6 +491,11 @@ def main():
pkg_spec = {}
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.
installed_state = get_package_state(name, pkg_spec, module)