Skip to content

Commit 974bf42

Browse files
Patch version 1.34.2
Includes fixes for batch\appliance.py and batch\networks.py (FE821)
1 parent 92d09ff commit 974bf42

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

generator/batch_function_template.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
action = {
5252
"resource": resource,
5353
"operation": "{{ batch_operation }}",
54-
{% if batch_operation != 'destroy'%}
54+
{% if body_params|length > 0 and batch_operation != 'destroy'%}
5555
"body": payload
5656
{% endif %}
5757
}

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
USE_ITERATOR_FOR_GET_PAGES,
4646
)
4747

48-
__version__ = '1.34.1'
48+
__version__ = '1.34.2'
4949

5050

5151
class DashboardAPI(object):

meraki/api/batch/appliance.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def createDeviceApplianceVmxAuthenticationToken(self, serial: str):
8888
action = {
8989
"resource": resource,
9090
"operation": "create",
91-
"body": payload
9291
}
9392
return action
9493

@@ -996,7 +995,6 @@ def swapNetworkApplianceWarmSpare(self, networkId: str):
996995
action = {
997996
"resource": resource,
998997
"operation": "create",
999-
"body": payload
1000998
}
1001999
return action
10021000

meraki/api/batch/networks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ def splitNetwork(self, networkId: str):
797797
action = {
798798
"resource": resource,
799799
"operation": "create",
800-
"body": payload
801800
}
802801
return action
803802

0 commit comments

Comments
 (0)