Skip to content

Commit

Permalink
netapp: ignore duplicate entry errors on cert install
Browse files Browse the repository at this point in the history
Change-Id: I2ad359d0a7ac29c6eb8e51137d2a2791ba774337
  • Loading branch information
Carthaca committed Jan 20, 2023
1 parent 43b3616 commit 40110c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manila/share/drivers/netapp/dataontap/client/client_cmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2138,8 +2138,9 @@ def configure_certificates(self):
try:
self.send_request('security-certificate-install', api_args)
except netapp_api.NaApiError as e:
msg = _("Failed to install certificate. %s")
raise exception.NetAppException(msg % e.message)
if e.code != netapp_api.EDUPLICATEENTRY:
msg = _("Failed to install certificate. %s")
raise exception.NetAppException(msg % e.message)

@na_utils.trace
def configure_cifs_encryption(self, secure=True):
Expand Down

0 comments on commit 40110c4

Please sign in to comment.