cli: primary connection is not NMConnection, but NMActiveConnection
authorJiří Klimeš <jklimes@redhat.com>
Mon, 14 Dec 2015 15:04:49 +0000 (16:04 +0100)
committerJiří Klimeš <jklimes@redhat.com>
Mon, 14 Dec 2015 15:04:49 +0000 (16:04 +0100)
commit800bd1aa18bc4a45333540f0c5d78eefe7283f4d
tree87b61d35224d4847b76a97da53e69cc9dfb3219f
parent436ec5b8e37ca2e5fc0f8d09a4c5f09cf406b4a5
cli: primary connection is not NMConnection, but NMActiveConnection

And use nm_client_get_primary_connection() accessor function instead of reading
NM_CLIENT_PRIMARY_CONNECTION property directly.

(process:31760): libnm-CRITICAL **: nm_connection_get_id: assertion 'NM_IS_CONNECTION (connection)' failed
(process:31760): libnm-CRITICAL **: nm_connection_get_uuid: assertion 'NM_IS_CONNECTION (connection)' failed

Fixes: d03f347b9dbdadb10952fb2704436b4405d38ac3
clients/cli/general.c