mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Rename modules from plural to singular (#27185)
* First batch of modules renamed from plural to singular Related to this proposal: https://github.com/ansible/proposals/issues/10 * Emit rename deprication warning * Update legacy-files.txt and skip.txt to reflect new names
This commit is contained in:
1
lib/ansible/modules/cloud/openstack/_os_server_actions.py
Symbolic link
1
lib/ansible/modules/cloud/openstack/_os_server_actions.py
Symbolic link
@@ -0,0 +1 @@
|
||||
os_server_action.py
|
||||
@@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: os_server_actions
|
||||
module: os_server_action
|
||||
short_description: Perform actions on Compute Instances from OpenStack
|
||||
extends_documentation_fragment: openstack
|
||||
version_added: "2.0"
|
||||
@@ -71,15 +71,15 @@ requirements:
|
||||
|
||||
EXAMPLES = '''
|
||||
# Pauses a compute instance
|
||||
- os_server_actions:
|
||||
action: pause
|
||||
auth:
|
||||
auth_url: https://mycloud.openstack.blueboxgrid.com:5001/v2.0
|
||||
username: admin
|
||||
password: admin
|
||||
project_name: admin
|
||||
server: vm1
|
||||
timeout: 200
|
||||
- os_server_action:
|
||||
action: pause
|
||||
auth:
|
||||
auth_url: https://mycloud.openstack.blueboxgrid.com:5001/v2.0
|
||||
username: admin
|
||||
password: admin
|
||||
project_name: admin
|
||||
server: vm1
|
||||
timeout: 200
|
||||
'''
|
||||
|
||||
try:
|
||||
@@ -142,6 +142,9 @@ def main():
|
||||
required_if=[('action', 'rebuild', ['image'])],
|
||||
**module_kwargs)
|
||||
|
||||
if module._name == 'os_server_actions':
|
||||
module.deprecate("The 'os_server_actions' module is being renamed 'os_server_action'", version=2.8)
|
||||
|
||||
if not HAS_SHADE:
|
||||
module.fail_json(msg='shade is required for this module')
|
||||
|
||||
Reference in New Issue
Block a user