瀏覽代碼

cmd_dialplan: fix matchexp variable name for rm command

Daniel-Constantin Mierla 6 年之前
父節點
當前提交
0f1f86b65d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kamcli/commands/cmd_dialplan.py

+ 1 - 1
kamcli/commands/cmd_dialplan.py

@@ -79,7 +79,7 @@ def dialplan_rm(ctx, dpid, matchexp):
         e.execute('delete from dialplan where dpid={0}'.format(dpid))
     else:
         for m in matchexp:
-            e.execute('delete from dialplan where dpid={0} and match_exp={1!r}'.format(dpid, m.encode('ascii','ignore').decode()))
+            e.execute('delete from dialplan where dpid={0} and match_exp={1!r}'.format(dpid, matchexp.encode('ascii','ignore').decode()))
 
 
 ##