未验证 提交 435a09ab 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'apahim/revert_varianter_debug'

Signed-off-by: NCleber Rosa <crosa@redhat.com>
......@@ -133,7 +133,7 @@ class Parser(object):
self.subcommands.required = True
# Allow overriding default params by plugins
variants = varianter.Varianter(getattr(self.args, "debug", False))
variants = varianter.Varianter(getattr(self.args, "varianter_debug", False))
self.args.avocado_variants = variants
# FIXME: Backward compatibility params, to be removed when 36 LTS is
# discontinued
......
......@@ -67,7 +67,7 @@ class Variants(CLICmd):
"Shows the node content (variables)")
env_parser = parser.add_argument_group("environment view options")
env_parser.add_argument('-d', '--debug', action='store_true',
dest="debug", default=False,
dest="varianter_debug", default=False,
help="Use debug implementation to gather more"
" information.")
tree_parser = parser.add_argument_group("tree view options")
......@@ -80,7 +80,7 @@ class Variants(CLICmd):
def run(self, args):
err = None
if args.tree and args.debug:
if args.tree and args.varianter_debug:
err = "Option --tree is incompatible with --debug."
elif not args.tree and args.inherit:
err = "Option --inherit can be only used with --tree"
......
......@@ -419,7 +419,7 @@ class YamlToMux(mux.MuxPlugin, Varianter):
else:
args.mux_filter_out = out
debug = getattr(args, "debug", False)
debug = getattr(args, "varianter_debug", False)
if debug:
data = mux.MuxTreeNodeDebug()
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册