~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2015-03-23 13:17:46 UTC
  • mfrom: (86 trunk)
  • mto: This revision was merged to the branch mainline in revision 90.
  • Revision ID: liam.young@canonical.com-20150323131746-qst1xl5havlogyli
Merged next in

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