libnm-util: add 'flags' argument to nm_connection_to_hash() and nm_setting_to_hash()
Simplifies code internally, and makes it easier for clients as well in some cases where they want to control what ends up in the resulting hash and what does not.
This commit is contained in:
@@ -405,7 +405,7 @@ nm_utils_call_dispatcher (const char *action,
|
||||
}
|
||||
|
||||
if (connection) {
|
||||
connection_hash = nm_connection_to_hash (connection);
|
||||
connection_hash = nm_connection_to_hash (connection, NM_SETTING_HASH_FLAG_NO_SECRETS);
|
||||
|
||||
connection_props = value_hash_create ();
|
||||
|
||||
|
Reference in New Issue
Block a user