Skip to content

Commit

Permalink
Treat only '=' as an ini delimiter
Browse files Browse the repository at this point in the history
By default both `:` and `=` are treated as delimiters by ConfigParser, but NetworkManager only treats `=` as a delimiter and uses `:` in key names.
  • Loading branch information
dcbaker authored Feb 6, 2024
1 parent 966261f commit 7b5099a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nm2nix.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

print("{")
for i in nmfiles:
config = configparser.ConfigParser()
config = configparser.ConfigParser(delimiters=('=', ))
config.read(i)
connection_name = i.strip(".nmconnection")
print(f" {connection_name} = {{")
Expand Down

0 comments on commit 7b5099a

Please sign in to comment.