Fix purefa_snmp errors

pull/68620/merge
Simon Dodsley 5 years ago committed by Matt Clay
parent 32f41334fb
commit 281af782e2

@ -0,0 +1,2 @@
bugfixes:
- purefa_snmp - Fix error when deleting a manager and when creating a v2c manager (https://github.com/ansible/ansible/pull/68180)

@ -53,7 +53,6 @@ options:
type: str type: str
description: description:
- IPv4 or IPv6 address or FQDN to send trap messages to. - IPv4 or IPv6 address or FQDN to send trap messages to.
required: True
user: user:
type: str type: str
description: description:
@ -221,7 +220,6 @@ def create_manager(module, array):
version=module.params['version'], version=module.params['version'],
community=module.params['community'], community=module.params['community'],
notification=module.params['notification'], notification=module.params['notification'],
user=module.params['user'],
host=module.params['host'] host=module.params['host']
) )
except Exception: except Exception:
@ -284,7 +282,7 @@ def main():
argument_spec = purefa_argument_spec() argument_spec = purefa_argument_spec()
argument_spec.update(dict( argument_spec.update(dict(
name=dict(type='str', required=True), name=dict(type='str', required=True),
host=dict(type='str', required=True), host=dict(type='str'),
state=dict(type='str', default='present', choices=['absent', 'present']), state=dict(type='str', default='present', choices=['absent', 'present']),
user=dict(type='str'), user=dict(type='str'),
notification=dict(type='str', choices=['inform', 'trap'], default='trap'), notification=dict(type='str', choices=['inform', 'trap'], default='trap'),

Loading…
Cancel
Save