~shaner/charm-helpers/lp1712203

  • Committer: shane.peters at canonical
  • Date: 2017-08-23 15:35:12 UTC
  • Revision ID: shane.peters@canonical.com-20170823153512-s91k2s2l6lgu0f52
[shaner,r=] Fixes parsing of currently loaded apache modules

When hardening apache, the returned list of currently
enabled modules is always empty.

This change splits on linefeeds from the output of
'apachectl -M' instead of spaces which allows the
regex to match.

Since the returned list of modules could potentitialy
be used as input to '_disable_module' the regex was tweaked
to truncate the module name, removing the '_module' since
this is what a2dismod expects.

Closes-Bug: #1712203
Filename Latest Rev Last Changed Committer Comment Size
..
bin 2 10 years ago Matthew Wedgwood Project structure Diff
charmhelpers 2 10 years ago Matthew Wedgwood Project structure Diff
debian 3 10 years ago Matthew Wedgwood Initial import of charmsupport Diff
docs 158.1.1 9 years ago Tim Van Steenburgh Add docs skeleton Diff
scripts 2 10 years ago Matthew Wedgwood Project structure Diff
tests 2 10 years ago Matthew Wedgwood Project structure Diff
tools 31.1.1 10 years ago Adam Gandelman Add charm-helpers-sync. Diff
.bzrignore 694.3.2 7 years ago Joseph Borg A few updates before landing: Removing fixed optio 181 bytes Diff Download File
HACKING 158.1.4 9 years ago Tim Van Steenburgh Add HACKING doc 595 bytes Diff Download File
LICENSE 596.1.1 7 years ago James Page Relicense project as Apache 2.0 11 KB Diff Download File
Makefile 764.1.1 6 years ago Alex Kavanagh Remove E402 ingore for pep8 to improve code checki 2.3 KB Diff Download File
MANIFEST.in 3 10 years ago Matthew Wedgwood Initial import of charmsupport 112 bytes Diff Download File
README.test 240.1.1 9 years ago Chris Johnston Update tarmac_tests.sh to check for required packa 275 bytes Diff Download File
README.txt 596.1.1 7 years ago James Page Relicense project as Apache 2.0 849 bytes Diff Download File
setup.cfg 158.1.1 9 years ago Tim Van Steenburgh Add docs skeleton 122 bytes Diff Download File
setup.py 624 7 years ago Marco Ceppi Fix setuptools 1.6 KB Diff Download File
File tarmac_tests.sh 618.2.2 7 years ago Denis Buliga Implemented changes. Addressed review comments. 464 bytes Diff Download File
test_requirements.txt 697 7 years ago Jorge Niedbalski [jamespage,r=niedbalski] Default the minimum of 51 552 bytes Diff Download File
VERSION 758 6 years ago Tim Van Steenburgh v0.17.0 7 bytes Diff Download File