mirror of
https://github.com/MAGICGrants/truenas-apps.git
synced 2026-01-09 20:47:58 -05:00
lib: don't modify passed dict (#2424)
* woodpecker: fix envs * bump * add descriptions * add option * print diff * huh * okay * test * sort * aha * try to keep order * hmm * still print diff * ookay * differently * no exitcode * cleaner * lib: don't modify passed dict
This commit is contained in:
@@ -17,11 +17,11 @@ class Portals:
|
||||
self._portals: set[Portal] = set()
|
||||
|
||||
def add(self, port: dict, config: dict | None = None):
|
||||
config = config or {}
|
||||
config = (config or {}).copy()
|
||||
name = config.get("name", "Web UI")
|
||||
host = config.get("host", None)
|
||||
|
||||
host_ips = port.get("host_ips", [])
|
||||
host_ips = port.get("host_ips", []).copy()
|
||||
if not isinstance(host_ips, list):
|
||||
raise RenderError("Expected [host_ips] to be a list of strings")
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
0.0.1: f074617a82a86d2a6cc78a4c8a4296fc9d168e456f12713e50c696557b302133
|
||||
2.1.30: 731ba096205b18f1ae77c38fc221c1485cb1927ea8836d3fa284768f7171d02a
|
||||
2.1.31: 73fa67dc74c06c4bf50da012e65839dc510770609eaca55d96f5fecea293c94a
|
||||
|
||||
Reference in New Issue
Block a user