diff --git a/lib/ansible/module_utils/network/common/utils.py b/lib/ansible/module_utils/network/common/utils.py index 6e0a18d133..d939ed901f 100644 --- a/lib/ansible/module_utils/network/common/utils.py +++ b/lib/ansible/module_utils/network/common/utils.py @@ -421,7 +421,7 @@ def load_provider(spec, args): provider[key] = None if 'authorize' in provider: # Coerce authorize to provider if a string has somehow snuck in. - provider['authorize'] = boolean(provider['authorize']) + provider['authorize'] = boolean(provider['authorize'] or False) args['provider'] = provider return provider