From a17ed6337e515b3fbb6863eef46cf6e5ea7c5750 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 25 Feb 2011 18:25:52 +0000 Subject: add support for giving application name when adding permission to a group --- modules/django_application/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/django_application') diff --git a/modules/django_application/manifests/init.pp b/modules/django_application/manifests/init.pp index d8bedbef..ae7e7cbc 100644 --- a/modules/django_application/manifests/init.pp +++ b/modules/django_application/manifests/init.pp @@ -39,8 +39,8 @@ class django_application { } } - define add_permission_to_group($path,$module,$group) { - exec { "/usr/local/bin/django_add_permission_to_group.py $group $name": + define add_permission_to_group($path,$module,$group, $app='') { + exec { "/usr/local/bin/django_add_permission_to_group.py $group $name $app": user => root, environment => ["DJANGO_SETTINGS_MODULE=$module.settings", "PYTHONPATH=$path" ], -- cgit v1.2.1