Created
September 2, 2014 21:01
-
-
Save UtahDave/eb64e806328e5ebab5b7 to your computer and use it in GitHub Desktop.
Salt State to remove annoying warning on Amazon Linux. - WARNING - DOES NOT ACTUALLY FIX THE ISSUE. THIS JUST SUPPRESSES THE WARNING.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TEMP: Disable warnings after installing apache-libcloud | |
# Try disabling this after future versions of apache-libcloud are released | |
disable_libgmp_warning: | |
file.replace: | |
- name: /usr/lib64/python2.6/site-packages/Crypto/Util/number.py | |
- pattern: 'if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:' | |
- repl: '#if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:' | |
disable_RandomPool_warning_line1: | |
file.replace: | |
- name: /usr/lib64/python2.6/site-packages/Crypto/Util/randpool.py | |
- pattern: 'warnings.warn\("This application uses RandomPool' | |
- repl: '#warnings.warn\("This application uses RandomPool' | |
disable_RandomPool_warning_line2: | |
file.replace: | |
- name: /usr/lib64/python2.6/site-packages/Crypto/Util/randpool.py | |
- pattern: 'RandomPool_DeprecationWarning\)' | |
- repl: '#RandomPool_DeprecationWarning\)' |
Again, this does NOT actually fix the problem being warned about here. Use at your own risk.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place this in /srv/salt/pycrypto.sls
Then run:
or