Prechádzať zdrojové kódy

cmd_dialplan: fix matchexp variable name for rm command

Daniel-Constantin Mierla 6 rokov pred
rodič
commit
0f1f86b65d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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))
         e.execute('delete from dialplan where dpid={0}'.format(dpid))
     else:
     else:
         for m in matchexp:
         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()))
 
 
 
 
 ##
 ##