cli: fix reading p-key and parent options for 'con add type infiniband'

This commit is contained in:
Jiří Klimeš
2013-07-25 14:59:08 +02:00
parent ae319b922e
commit 05258cba88

View File

@@ -2194,8 +2194,8 @@ cleanup_wired:
nmc_arg_t exp_args[] = { {"mtu", TRUE, &mtu, FALSE}, nmc_arg_t exp_args[] = { {"mtu", TRUE, &mtu, FALSE},
{"mac", TRUE, &mac, FALSE}, {"mac", TRUE, &mac, FALSE},
{"transport-mode", TRUE, &mode, FALSE}, {"transport-mode", TRUE, &mode, FALSE},
{"parent", TRUE, &mode, FALSE}, {"parent", TRUE, &parent, FALSE},
{"p-key", TRUE, &mode, FALSE}, {"p-key", TRUE, &p_key, FALSE},
{NULL} }; {NULL} };
if (!nmc_parse_args (exp_args, FALSE, &argc, &argv, error)) if (!nmc_parse_args (exp_args, FALSE, &argc, &argv, error))