mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-12 00:54:22 -07:00
bug fix (#55057)
This commit is contained in:
parent
24c5a6ef4c
commit
7bb19f1b4d
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ class NetAppOntapNetRoutes(object):
|
||||||
metric = self.parameters['metric']
|
metric = self.parameters['metric']
|
||||||
else:
|
else:
|
||||||
metric = current_metric
|
metric = current_metric
|
||||||
route_obj.add_new_child("metric", metric)
|
# Metric can be None, Can't set metric to none
|
||||||
|
if metric is not None:
|
||||||
|
route_obj.add_new_child("metric", metric)
|
||||||
try:
|
try:
|
||||||
self.server.invoke_successfully(route_obj, True)
|
self.server.invoke_successfully(route_obj, True)
|
||||||
except netapp_utils.zapi.NaApiError as error:
|
except netapp_utils.zapi.NaApiError as error:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue