diff --git a/jperm/views.py b/jperm/views.py index 57559444e..36d188f6e 100644 --- a/jperm/views.py +++ b/jperm/views.py @@ -380,7 +380,8 @@ def sudo_edit(request): else: user_group_id = request.POST.get('user_group_id', '') - users_runas = request.POST.get('runas', 'root') + users_runas = request.POST.get('runas') if request.POST.get('runas') else 'root' + print users_runas asset_groups_select = request.POST.getlist('asset_groups_select') cmd_groups_select = request.POST.getlist('cmd_groups_select') comment = request.POST.get('comment', '') diff --git a/templates/jperm/sudo_cmd_add.html b/templates/jperm/sudo_cmd_add.html index 9f9e8990e..f2135f31d 100644 --- a/templates/jperm/sudo_cmd_add.html +++ b/templates/jperm/sudo_cmd_add.html @@ -80,7 +80,7 @@