mirror of https://github.com/ansible/ansible.git
fix AWS plugin credential precedence for environment variables (#52945)
* fix AWS plugin credential precedence for environment variables * Allow aliases in direct plugins options Consolidate precedence fix just in the doc fragment using aliases for mismatched options * Access options with the option name rather than alias * fix indentation * update unit tests * Improve readabilitypull/54355/head
parent
4fac91bed5
commit
54be769e8d
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- AWS plugins - before 2.8 the environment variable precedence was incorrectly reversed.
|
@ -0,0 +1,18 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright: (c) 2017, Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
|
||||||
|
class ModuleDocFragment(object):
|
||||||
|
|
||||||
|
# Plugin option for AWS region
|
||||||
|
DOCUMENTATION = r'''
|
||||||
|
options:
|
||||||
|
region:
|
||||||
|
description: The region for which to create the connection.
|
||||||
|
type: str
|
||||||
|
env:
|
||||||
|
- name: EC2_REGION
|
||||||
|
- name: AWS_REGION
|
||||||
|
'''
|
Loading…
Reference in New Issue