ifcfg-rh: unmanaged connections should be invisible to ifup too (rh #619863)

The plugin does not expose them to NM, and it shouldn't expose them to
ifup either.  The world should be consistent :)
This commit is contained in:
Dan Williams 2010-08-09 16:59:11 -05:00
parent c72fbd6b87
commit 9bed26b856

View file

@ -544,7 +544,7 @@ impl_ifcfgrh_get_ifcfg_details (SCPluginIfcfg *plugin,
}
connection = g_hash_table_lookup (priv->connections, in_ifcfg);
if (!connection) {
if (!connection || nm_ifcfg_connection_get_unmanaged_spec (connection)) {
g_set_error (error,
NM_SETTINGS_INTERFACE_ERROR,
NM_SETTINGS_INTERFACE_ERROR_INVALID_CONNECTION,