Skip to content

Commit 726011b

Browse files
Change appliance_groups and appliance_regions parameters to mandatory to avoid error submitting original default value of None - fix Update Appliance Access Group returns Null Value Error #6
1 parent b974735 commit 726011b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

pyedgeconnect/orch/_rbac_appliance_access_group.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ def get_all_appliance_access_groups(
3636
def update_appliance_access_group(
3737
self,
3838
appliance_access_group_name: str,
39-
appliance_groups: list[str] = None,
40-
appliance_regions: list[str] = None,
39+
appliance_groups: list[str],
40+
appliance_regions: list[str],
4141
) -> bool:
42-
"""Create or update appliance access gropu / asset
42+
"""Create or update appliance access group / asset.
43+
Both list of ``appliance_groups`` and ``appliance_regions``
44+
must be specified, if no group or region is desired, provide
45+
a blank list as input.
4346
4447
.. list-table::
4548
:header-rows: 1
@@ -55,11 +58,11 @@ def update_appliance_access_group(
5558
appliance access group to create or update
5659
:type appliance_access_group_name: str
5760
:param appliance_groups: List of appliance group id's the access
58-
group will allow access to, defaults to None
59-
:type appliance_groups: list[str], optional
61+
group will allow access to
62+
:type appliance_groups: list[str]
6063
:param appliance_regions: List of region id's the access group will
61-
allow access to, defaults to None
62-
:type appliance_regions: list[str], optional
64+
allow access to
65+
:type appliance_regions: list[str]
6366
:return: Returns True/False based on successful call
6467
:rtype: bool
6568
"""

0 commit comments

Comments
 (0)