Remove redundent deprecation warning

Warn about with_retries deprecation only when actually used

Change-Id: If197c3c9fd719311de9e548fc2b318319598c1ba
This commit is contained in:
asarfaty 2020-05-10 12:07:26 +02:00 committed by Adit Sarfaty
parent 7e72c3a13d
commit 1f422dbcbc
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class NSX3Client(JSONRESTClient):
status_code=status_code)
def _rest_call(self, url, **kwargs):
if kwargs.get('with_retries', True):
if 'with_retries' in kwargs and kwargs['with_retries']:
LOG.warning("with_retries setting is deprecated and will be "
"removed. Please use exceptions setting in nsxlib "
"config instead")