소스 검색

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()))
 
 
 ##