Commit b627fac8 authored by Pasha Fistanto's avatar Pasha Fistanto Committed by Doron Behar
Browse files

nixos/syncthing: fix ignorePatterns with folders with white-space in ID

this should fix nixosTests.syncthing-folders
parent 62e64cd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ let
                  If it does, write the ignore patterns to the rest API.
                */
                + lib.optionalString ((conf_type == "dirs") && (new_cfg.ignorePatterns != null)) ''
                  curl -d '{"ignore": ${builtins.toJSON new_cfg.ignorePatterns}}' -X POST ${s.ignoreAddress}?folder=${new_cfg.id}
                  curl -d '{"ignore": ${builtins.toJSON new_cfg.ignorePatterns}}' -X POST ${s.ignoreAddress}?folder=${lib.strings.escapeURL new_cfg.id}
                ''
              ))
              (lib.concatStringsSep "\n")