1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix docstrings; refactor to strict types

This commit is contained in:
checktheroads
2019-12-31 18:29:43 -07:00
parent d9bca3b8f0
commit 08c33f678f
13 changed files with 384 additions and 327 deletions

View File

@@ -20,10 +20,13 @@ class Credentials(HyperglassModel):
@classmethod
def import_params(cls, input_params):
"""
Imports passed dict from YAML config, removes unsupported
characters from device names, dynamically sets attributes for
the credentials class.
"""Import credentials with corrected field names.
Arguments:
input_params {dict} -- Credential definition
Returns:
{object} -- Validated credential object
"""
obj = Credentials()
for (credname, params) in input_params.items():