HAWQ-567. Fix -U --specia-mode option conflict check
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/606c9e5b Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/606c9e5b Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/606c9e5b Branch: refs/heads/HAWQ-546 Commit: 606c9e5b26bd8e21302e26ead2775b135a002eff Parents: 5c3bf1f Author: rlei <r...@pivotal.io> Authored: Wed Mar 23 10:49:53 2016 +0800 Committer: Oleksandr Diachenko <odiache...@pivotal.io> Committed: Wed Mar 30 17:23:27 2016 -0700 ---------------------------------------------------------------------- tools/bin/hawq_ctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/606c9e5b/tools/bin/hawq_ctl ---------------------------------------------------------------------- diff --git a/tools/bin/hawq_ctl b/tools/bin/hawq_ctl index 49a9ff4..aeb871b 100755 --- a/tools/bin/hawq_ctl +++ b/tools/bin/hawq_ctl @@ -943,7 +943,7 @@ def get_args(): logger.error("Multiple actions specified. See the --help info.") sys.exit(1) - if opts.special_mode and (opts.node_type != 'start'): + if opts.special_mode and (opts.hawq_command != 'start'): logger.error("['-U', '--special-mode'] only apply to 'hawq start'. See the --help info.") sys.exit(1)