浏览代码

cmd_domain: fixed variable names

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
a85d2d15e6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kamcli/commands/cmd_domain.py

+ 2 - 2
kamcli/commands/cmd_domain.py

@@ -37,7 +37,7 @@ def domain_add(ctx, domain):
 #
 #
 @cli.command('rm', short_help='Remove a record from domain table')
[email protected]('destination', metavar='<destination>')
[email protected]('domain', metavar='<domain>')
 @pass_context
 def domain_rm(ctx, domain):
     """Remove a a record from db domain table
@@ -69,7 +69,7 @@ def domain_showdb(ctx, oformat, ostyle, domain):
         [<domain>] - domain value (optional)
     """
     e = create_engine(ctx.gconfig.get('db', 'rwurl'))
-    if not setid:
+    if not domain:
         ctx.vlog('Showing all domain records')
         res = e.execute('select * from domain')
         ioutils_dbres_print(ctx, oformat, ostyle, res)