From 8b0745496aa66eb9400e1639e9795e4d8414d4f7 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Fri, 6 Sep 2024 18:00:18 +0530 Subject: [PATCH 1/3] Fix for issue #1322 to pass no_validate --- lib/jnpr/junos/utils/sw.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/jnpr/junos/utils/sw.py b/lib/jnpr/junos/utils/sw.py index c9e42f58e..62dc2c0a1 100644 --- a/lib/jnpr/junos/utils/sw.py +++ b/lib/jnpr/junos/utils/sw.py @@ -984,11 +984,17 @@ def _progress(report): kwargs.update({"no_validate": True}) if issu is True: + if validate is False: + # Need to pass the no_validate option via kwargs + kwargs.update({"no_validate": True}) _progress("ISSU: installing software ... please be patient ...") return self.pkgaddISSU( remote_package, vmhost=vmhost, dev_timeout=timeout, **kwargs ) elif nssu is True: + if validate is False: + # Need to pass the no_validate option via kwargs + kwargs.update({"no_validate": True}) _progress("NSSU: installing software ... please be patient ...") return self.pkgaddNSSU(remote_package, dev_timeout=timeout, **kwargs) elif member_id is not None: From 83118925b48ef853a0787dff6de44bd7ff61478c Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 9 Oct 2024 17:32:19 +0530 Subject: [PATCH 2/3] Fix for issue #1322 to pass no_validate --- lib/jnpr/junos/utils/sw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/utils/sw.py b/lib/jnpr/junos/utils/sw.py index 62dc2c0a1..9e7070a41 100644 --- a/lib/jnpr/junos/utils/sw.py +++ b/lib/jnpr/junos/utils/sw.py @@ -984,7 +984,7 @@ def _progress(report): kwargs.update({"no_validate": True}) if issu is True: - if validate is False: + if validate is False: # To Check validation is False # Need to pass the no_validate option via kwargs kwargs.update({"no_validate": True}) _progress("ISSU: installing software ... please be patient ...") From 6286c946fd0154e343d5a13119194f0740bedd15 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 9 Oct 2024 17:34:24 +0530 Subject: [PATCH 3/3] Fix for issue #1322 to pass no_validate --- lib/jnpr/junos/utils/sw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/utils/sw.py b/lib/jnpr/junos/utils/sw.py index 9e7070a41..bd2565d3b 100644 --- a/lib/jnpr/junos/utils/sw.py +++ b/lib/jnpr/junos/utils/sw.py @@ -984,7 +984,7 @@ def _progress(report): kwargs.update({"no_validate": True}) if issu is True: - if validate is False: # To Check validation is False + if validate is False: # To Check validation is False # Need to pass the no_validate option via kwargs kwargs.update({"no_validate": True}) _progress("ISSU: installing software ... please be patient ...")