From fb36b5788bed59f5f75243b16a2b399b4263ec2b Mon Sep 17 00:00:00 2001 From: CWollinger Date: Sun, 16 Feb 2020 15:36:10 +0100 Subject: [PATCH] Change param user to username --- README.md | 2 +- ipwcli_dns.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e65963c..6444eec 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Manage DNS records for the Ericsson IPWorks DNS server. The module will use the | target | string | | | Sets the target of the SRV record. Required for `type=SRV` | | ttl | integer | | Default: 3600 | Sets the ttl of the record. | | type | string | required | Choices: NAPTR, SRV, A, AAAA | Type of the record. | -| user | string | required | | Username to login on ipwcli. | +| username | string | required | | Username to login on ipwcli. | | weight | integer | | Default: 10 | Sets the weight of the SRV record. | ## Notes diff --git a/ipwcli_dns.py b/ipwcli_dns.py index 52ee2f0..a272cbf 100644 --- a/ipwcli_dns.py +++ b/ipwcli_dns.py @@ -108,7 +108,7 @@ - Sets the replacement of the NAPTR record. - Required for C(type=NAPTR) type: str - user: + username: description: - Username to login on ipwcli. type: str @@ -184,7 +184,7 @@ def __init__(self, module): self.flags = module.params['flags'] self.service = module.params['service'] self.replacement = module.params['replacement'] - self.user = module.params['user'] + self.user = module.params['username'] self.password = module.params['password'] def create_naptrrecord(self): @@ -297,7 +297,7 @@ def run_module(): flags=dict(type='str', required=False, choices=['S', 'A', 'U', 'P']), service=dict(type='str', required=False), replacement=dict(type='str', required=False), - user=dict(type='str', required=True), + username=dict(type='str', required=True), password=dict(type='str', required=True, no_log=True) )