Skip to content

Commit

Permalink
vsphere_copy: Remove deprecated parameters (#1456)
Browse files Browse the repository at this point in the history
vsphere_copy: Remove deprecated parameters

SUMMARY
Fixes #1196
The parameters host and login are deprecated and should be removed in version 3.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
vsphere_copy
ADDITIONAL INFORMATION
#1194
  • Loading branch information
mariolenz authored Sep 9, 2022
1 parent a74b7a4 commit 4d1c5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
removed_features:
- vsphere_copy - The deprecated parameters ``host`` and ``login`` have been removed.
11 changes: 0 additions & 11 deletions plugins/modules/vsphere_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
author:
- Dag Wieers (@dagwieers)
options:
hostname:
aliases: ['host']
username:
aliases: ['login']
src:
description:
- The file to push to vCenter.
Expand Down Expand Up @@ -125,8 +121,6 @@ def vmware_path(datastore, datacenter, path):
def main():
argument_spec = vmware_argument_spec()
argument_spec.update(dict(
hostname=dict(required=False, aliases=['host']),
username=dict(required=False, aliases=['login']),
src=dict(required=True, aliases=['name']),
datacenter=dict(required=False),
datastore=dict(required=True),
Expand All @@ -140,11 +134,6 @@ def main():
supports_check_mode=False,
)

if module.params.get('host'):
module.deprecate("The 'host' option is being replaced by 'hostname'", version='3.0.0', collection_name='community.vmware')
if module.params.get('login'):
module.deprecate("The 'login' option is being replaced by 'username'", version='3.0.0', collection_name='community.vmware')

hostname = module.params['hostname']
username = module.params['username']
password = module.params.get('password')
Expand Down

0 comments on commit 4d1c5e0

Please sign in to comment.