ACI: Move to 'host' parameter instead of 'hostname' (#35161)

* ACI: Move to 'host' parameter instead of 'hostname'

* Update host parameter in documentation fragment too
This commit is contained in:
Dag Wieers 2018-01-22 22:06:56 +01:00 committed by GitHub
commit d6004852a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 197 additions and 198 deletions

View file

@ -76,7 +76,7 @@ EXAMPLES = r'''
---
- name: Create a Snapshot
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: present
@ -84,7 +84,7 @@ EXAMPLES = r'''
- name: Query Existing Snapshots
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
@ -92,7 +92,7 @@ EXAMPLES = r'''
- name: Compare Snapshot Files
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: preview
@ -103,7 +103,7 @@ EXAMPLES = r'''
- name: Rollback Configuration
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: rollback
@ -113,7 +113,7 @@ EXAMPLES = r'''
- name: Rollback Configuration
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: rollback
@ -225,7 +225,7 @@ def main():
aci.post_config()
elif state == 'preview':
aci.result['url'] = '%(protocol)s://%(hostname)s/mqapi2/snapshots.diff.xml' % module.params
aci.result['url'] = '%(protocol)s://%(host)s/mqapi2/snapshots.diff.xml' % module.params
aci.result['filter_string'] = (
'?s1dn=uni/backupst/snapshots-[uni/fabric/configexp-%(export_policy)s]/snapshot-%(snapshot)s&'
's2dn=uni/backupst/snapshots-[uni/fabric/configexp-%(compare_export_policy)s]/snapshot-%(compare_snapshot)s'