mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
manifestv2: fix ports resource test
This commit is contained in:
parent
f9e15ff8a3
commit
61d7ba1e40
2 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ def test_resource_ports():
|
|||
def test_resource_ports_several():
|
||||
|
||||
r = AppResourceClassesByType["ports"]
|
||||
conf = {"main.default": 12345, "foobar.default": 23456}
|
||||
conf = {"main": {"default": 12345}, "foobar": {"default": 23456}}
|
||||
|
||||
assert not app_setting("testapp", "port")
|
||||
assert not app_setting("testapp", "port_foobar")
|
||||
|
|
|
@ -619,7 +619,7 @@ class PortsResource(AppResource):
|
|||
continue
|
||||
|
||||
if not port_value:
|
||||
port_value = self.infos["default"]
|
||||
port_value = infos["default"]
|
||||
while self._port_is_used(port_value):
|
||||
port_value += 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue