Skip to content

Commit

Permalink
Fix virtualbmc install error at introspection stage
Browse files Browse the repository at this point in the history
Error:
   File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1644, in send
     with _from_buffer(buf) as data:
     AttributeError: __enter__

Fix by cleaning leftovers
  • Loading branch information
dsariel committed Aug 20, 2021
1 parent feb78d3 commit 2f81c8f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions roles/patch_rpm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,21 @@
when: install.component.version|int >= 13
until: task_result is success
retries: 3


- name: remove RHEL8 specific packages
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8' | default(false)
block:
# Remove pyOpenSSL and rdopkg from pip for RHEL8
- name: remove pyOpenSSL and rdopkg from pip
become: yes
pip:
name:
- 'pyOpenSSL'
- 'rdopkg'
state: absent
executable: pip-3.6
until: task_result is success
retries: 3
delay: 3

0 comments on commit 2f81c8f

Please sign in to comment.