OpenShift版本补丁查看:https://docs.openshift.com/container-platform/3.11/release_notes/ocp_3_11_release_notes.html

自动查看新增的补丁版本脚本
```
# -- coding: utf-8 --
“””

File Name: get_update_v3.11

“””

last_index=”RHSA-2020:2992”

last_flag = False

import requests
from pyquery import PyQuery

url=”https://docs.openshift.com/container-platform/3.11/release_notes/ocp_3_11_release_notes.html

content=requests.get(url)
query_doc = PyQuery(content.content)(“.sectlevel2:eq(2) li”).items()

for update_item in query_doc:
if not last_flag:
item_text = update_item.text()
if item_text.find(last_index) > -1:
last_flag = True
continue

print(update_item.text())

RHBA-2020:3245 - OpenShift Container Platform 3.11.272 bug fix update
RHSA-2020:3541 - Important: OpenShift Container Platform security update
RHBA-2020:3695 - OpenShift Container Platform 3.11.286 bug fix update
RHSA-2020:3727 - Moderate: OpenShift Container Platform security update
RHBA-2020:4170 - OpenShift Container Platform 3.11.306 bug fix update
RHSA-2020:4223 - Important: OpenShift Container Platform security update
RHBA-2020:4430 - OpenShift Container Platform 3.11.317 bug fix update
RHBA-2020:5107 - OpenShift Container Platform 3.11.318 bug fix update
RHSA-2020:5102 - Moderate: OpenShift Container Platform security update
RHSA-2020:5363 - OpenShift Container Platform 3.11.346 security and bug fix update



软件包:https://access.redhat.com/downloads/content/package-browser