Remove elements= from arg_spec when type is not 'list'. (#50484)

This commit is contained in:
Felix Fontein
2019-01-09 15:10:17 +01:00
committed by Ganesh Nalawade
parent 4902306dd8
commit 41de2855ae
4 changed files with 9 additions and 7 deletions

View File

@@ -456,7 +456,7 @@ def main():
name=dict(),
configured_password=dict(no_log=True),
hashed_password=dict(no_log=True, elements='dict', options=hashed_password_spec),
hashed_password=dict(no_log=True, type='dict', options=hashed_password_spec),
nopassword=dict(type='bool'),
update_password=dict(default='always', choices=['on_create', 'always']),
password_type=dict(default='secret', choices=['secret', 'password']),