mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
change string into fstring in resources.py
This commit is contained in:
parent
dc0fa8c4ac
commit
36a17dfdbd
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ class PortsResource(AppResource):
|
|||
port_value = self.get_setting(setting_name)
|
||||
if not port_value and name != "main":
|
||||
# Automigrate from legacy setting foobar_port (instead of port_foobar)
|
||||
legacy_setting_name = "{name}_port"
|
||||
legacy_setting_name = f"{name}_port"
|
||||
port_value = self.get_setting(legacy_setting_name)
|
||||
if port_value:
|
||||
self.set_setting(setting_name, port_value)
|
||||
|
|
Loading…
Add table
Reference in a new issue