1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes the default assignment of values (#41672)

Fixes: #41640

The defaults should be inherited from the parent during initial
creation. This patch fixes that.
This commit is contained in:
Tim Rupp 2018-06-18 16:06:13 -07:00 committed by GitHub
parent f71ad4e315
commit 6c654b6947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -33,7 +33,7 @@ options:
ciphers: ciphers:
description: description:
- Specifies the list of ciphers that the system supports. When creating a new - Specifies the list of ciphers that the system supports. When creating a new
profile, the default cipher list is C(DEFAULT). profile, the default cipher list is provided by the parent profile.
cert_key_chain: cert_key_chain:
description: description:
- One or more certificates and keys to associate with the SSL profile. This - One or more certificates and keys to associate with the SSL profile. This
@ -402,8 +402,6 @@ class ModuleManager(object):
def create(self): def create(self):
self._set_changed_options() self._set_changed_options()
if self.want.ciphers is None:
self.want.update({'ciphers': 'DEFAULT'})
if self.module.check_mode: if self.module.check_mode:
return True return True
self.create_on_device() self.create_on_device()

View file

@ -107,7 +107,7 @@ class TestManager(unittest.TestCase):
chain='bigip_ssl_cert1' chain='bigip_ssl_cert1'
) )
], ],
password='passsword', password='password',
server='localhost', server='localhost',
user='admin' user='admin'
)) ))