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:
@@ -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():
|
||||
|
Reference in New Issue
Block a user