~1chb1n/charms/trusty/quantum-gateway/next-amulet-tk2

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/sysctl.py

  • Committer: Edward Hope-Morley
  • Date: 2015-02-24 11:09:04 UTC
  • Revision ID: edward.hope-morley@canonical.com-20150224110904-fgjh7ikqwy6d9kf8
[trivial] charmhelpers sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# You should have received a copy of the GNU Lesser General Public License
18
18
# along with charm-helpers.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
 
__author__ = 'Jorge Niedbalski R. <jorge.niedbalski@canonical.com>'
21
 
 
22
20
import yaml
23
21
 
24
22
from subprocess import check_call
29
27
    ERROR,
30
28
)
31
29
 
 
30
__author__ = 'Jorge Niedbalski R. <jorge.niedbalski@canonical.com>'
 
31
 
32
32
 
33
33
def create(sysctl_dict, sysctl_file):
34
34
    """Creates a sysctl.conf file from a YAML associative array