Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fixed alias for incl_def_root_cert (#469)
Browse files Browse the repository at this point in the history
* fixed alias for GenerateBoostrapConfigurationQueryParams incl_def_root_cert parameter

* fixed inclDefRootCert parameter name
  • Loading branch information
tzarski0 authored Feb 15, 2024
1 parent 756a3f5 commit b084b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalystwan/api/config_device_inventory_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def generate_bootstrap_cfg(
Returns handy model of generated bootstrap config
"""
params = GenerateBoostrapConfigurationQueryParams(
configtype=configtype, incl_def_root_cert=incl_def_root_cert, version=version
configtype=configtype, inclDefRootCert=incl_def_root_cert, version=version
)
reponse = self.endpoint.generate_bootstrap_configuration(uuid=device_uuid, params=params)

Expand Down
2 changes: 1 addition & 1 deletion catalystwan/endpoints/configuration_device_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class ConfigType(str, Enum):

class GenerateBoostrapConfigurationQueryParams(BaseModel):
configtype: Optional[ConfigType] = Field(default=ConfigType.CLOUDINIT)
incl_def_root_cert: Optional[bool] = Field(default=False)
incl_def_root_cert: Optional[bool] = Field(default=False, alias="inclDefRootCert")
version: Optional[str] = Field(default="v1")


Expand Down

0 comments on commit b084b02

Please sign in to comment.