Fix "vzctl create --config" to work again

After commit 4682e5ea4e7bd52d4da952c205b6fa94feecda5d which removed
--config from 'vzctl set' options 'vzctl create' stopped recognizing
it as well.

The problem is caused by the fact that the function vps_parse_opt()
(which is called from parse_opt() used by both parse_set_options() and
parse_create_options()) calls opt_get_by_id() with set_opt as a first
argument. In other words, the code (wrongly) assumed that "create options"
is a subset of "set options".

Get rid of that by passing proper options all the way down to
opt_get_by_id().

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed