diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 05:27:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 05:27:00 +0000 |
commit | 0fa39a9749fa522c03ac768ca70447de27000f72 (patch) | |
tree | 70934ea9eb4870ab5362707a51def322189ac167 /docs/labs/lab06-provisioning | |
parent | Adding upstream version 1.3.2+dfsg. (diff) | |
download | cvprac-0fa39a9749fa522c03ac768ca70447de27000f72.tar.xz cvprac-0fa39a9749fa522c03ac768ca70447de27000f72.zip |
Adding upstream version 1.4.0+dfsg.upstream/1.4.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/labs/lab06-provisioning')
-rw-r--r-- | docs/labs/lab06-provisioning/vc_task_retrigger.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/labs/lab06-provisioning/vc_task_retrigger.py b/docs/labs/lab06-provisioning/vc_task_retrigger.py index b5586ee..cfee3a1 100644 --- a/docs/labs/lab06-provisioning/vc_task_retrigger.py +++ b/docs/labs/lab06-provisioning/vc_task_retrigger.py @@ -7,7 +7,7 @@ import argparse import ssl import sys -from pkg_resources import parse_version +from packaging.version import parse from getpass import getpass from cvprac.cvp_client import CvpClient import requests.packages.urllib3 @@ -56,7 +56,7 @@ def main(): # Get the current CVP version cvp_release = clnt.api.get_cvp_info()['version'] - if parse_version(cvp_release) < parse_version('2020.3.0'): + if parse(cvp_release) < parse('2020.3.0'): # For older CVP, we manually trigger a compliance check try: clnt.api.check_compliance('root', 'container') |